File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ evalString2Base = Builtin.functionEvaluator evalString2Base0
305
305
[(result, " " )] -> Right (result, " " )
306
306
_ -> Left " "
307
307
10 -> Text. signed Text. decimal
308
- 16 -> Text. hexadecimal
308
+ 16 -> Text. signed Text. hexadecimal
309
309
_ -> const empty
310
310
case readN _str of
311
311
Right (result, Text. unpack -> " " ) ->
Original file line number Diff line number Diff line change @@ -297,10 +297,10 @@ test_string2Base =
297
297
[asInternal " 42" , Test.Int. asInternal 16 ]
298
298
(Test.Int. asPattern 66 )
299
299
, Test.Int. testInt
300
- " string2Base hex negative is bottom "
300
+ " string2Base hex negative"
301
301
string2BaseStringSymbol
302
302
[asInternal " -42" , Test.Int. asInternal 16 ]
303
- bottom
303
+ ( Test.Int. asPattern ( - 66 ))
304
304
, Test.Int. testInt
305
305
" string2Base hex is bottom"
306
306
string2BaseStringSymbol
@@ -317,7 +317,7 @@ test_string2Base =
317
317
[asInternal " foobar" , Test.Int. asInternal 16 ]
318
318
bottom
319
319
, Test.Int. testInt
320
- " string2Base hex from hex is bottom "
320
+ " string2Base hex from hex"
321
321
string2BaseStringSymbol
322
322
[asInternal " baad" , Test.Int. asInternal 16 ]
323
323
(Test.Int. asPattern 47789 )
You can’t perform that action at this time.
0 commit comments