]> gitweb.factorcode.org Git - factor.git/blobdiff - core/math/parser/parser-tests.factor
math.parser: require hex-string>bytes to have even digits
[factor.git] / core / math / parser / parser-tests.factor
index 9e3b3d2159047e90134880ba2ef5378905afd140..13e4514c436d41906e8b027a93f56942030af623 100644 (file)
@@ -480,6 +480,7 @@ unit-test
 
 { "deadbeef" } [ B{ 222 173 190 239 } bytes>hex-string ] unit-test
 { B{ 222 173 190 239 } } [ "deADbeEF" hex-string>bytes ] unit-test
+[ "0" hex-string>bytes ] [ invalid-hex-string-length? ] must-fail-with
 
 {
     B{ 49 46 53 53 69 43 48 53 }