From 5e17bd5e16dc778b3606b079afffbbef306f42ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Tue, 8 Dec 2020 17:44:39 +0100 Subject: [PATCH] test_precompiles: fix enum case This fixes compilation with Nim-1.4.2. --- tests/test_precompiles.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_precompiles.nim b/tests/test_precompiles.nim index 1e11d0a6c..3abedf469 100644 --- a/tests/test_precompiles.nim +++ b/tests/test_precompiles.nim @@ -65,7 +65,7 @@ template doTest(fixture: JsonNode, fork: Fork, address: PrecompileAddresses): un proc testFixture(fixtures: JsonNode, testStatusIMPL: var TestStatus) = let label = fixtures["func"].getStr - fork = parseEnum[Fork](fixtures["fork"].getStr) + fork = parseEnum[Fork](fixtures["fork"].getStr.toLowerAscii) data = fixtures["data"] case toLowerAscii(label)