Skip to content

Commit 79fbd28

Browse files
committed
Revert "Add tests for '−' (U+2212) minus support to nqp::radix(_I)"
This reverts commit 6af4a58. Revert for now, as it breaks the JVM build
1 parent 179e56e commit 79fbd28

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

t/nqp/081-radix.t

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
plan(36*(6 + 3) + 3 + 7);
1+
plan(33*(6 + 3) + 3 + 7);
22

33
sub test_radix($radix,$str,$pos,$flags,$value,$mult,$offset,$desc) {
44
my $result := nqp::radix($radix,$str,$pos,$flags);
@@ -30,16 +30,14 @@ sub test_radix_both(*@args) {
3030
test_radix_both(10,"123",0,2, 123,1000,3, "base-10 radix call with no flags" );
3131
test_radix_both(10,"+123",0,2, 123,1000,4, "base-10 radix call with flag 2 and +" );
3232
test_radix_both(10,"-123",0,2, -123,1000,4, "base-10 radix call with flag 2 and -" );
33-
test_radix_both(10,"−123",0,2, -123,1000,4, "base-10 radix call with flag 2 and −" );
3433
test_radix_both(10,"-10",0,0, 0,1,-1, "no digits consumed when we get - without flag");
3534
test_radix_both(10,"+10",0,0, 0,1,-1, "no digits consumed when we get + without flag");
3635

3736
test_radix_both(10, "123", 0, 1, -123, 1000, 3, "base-10 radix with flag 1");
3837

3938
test_radix_both(10, "12000", 0, 4, 12, 100, 5, "base-10 radix with flags 4");
4039
test_radix_both(10, "12000", 0, 5, -12, 100, 5, "base-10 radix with flags 4 and 1");
41-
test_radix_both(10, "-12000", 0, 6, -12, 100, 6, "base-10 radix with flags 4 and 2 with -");
42-
test_radix_both(10, "−12000", 0, 6, -12, 100, 6, "base-10 radix with flags 4 and 2 with −");
40+
test_radix_both(10, "-12000", 0, 6, -12, 100, 6, "base-10 radix with flags 4 and 2");
4341

4442
test_radix_both(10,"123",0,2, 123,1000,3, "basic base-10 radix call");
4543
test_radix_both(10,"123",1,2, 23,100,3, "basic base-10 radix call with pos" );
@@ -48,8 +46,7 @@ test_radix_both(15,"1a",0,2, 25,225,2, "base 15 call with lower case" );
4846
test_radix_both(15,"1B",0,2, 26,225,2, "base 15 call with upper case" );
4947
test_radix_both(16,"1a",0,2, 26,256,2, "base 16 call with lower case" );
5048
test_radix_both(16,"1B",0,2, 27,256,2, "base 16 call with upper case" );
51-
test_radix_both(15,"-1B",0,2, -26,225,3, "base 15 call with upper case and negation with -" );
52-
test_radix_both(15,"−1B",0,2, -26,225,3, "base 15 call with upper case and negation with −" );
49+
test_radix_both(15,"-1B",0,2, -26,225,3, "base 15 call with upper case and negation" );
5350
test_radix_both(10,"000123",0,2, 123,1000000,6, "base-10 with zeros at the front");
5451
test_radix_both(10,"1_2_3",0,2, 123,1000,5, "base-10 with underscores");
5552
test_radix_both(10,"not_a_number",0,2, 0,1,-1, "no digits consumed");

0 commit comments

Comments
 (0)