diff options
author | Rob Landley <rob@landley.net> | 2014-12-01 03:15:25 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2014-12-01 03:15:25 -0600 |
commit | ef6a773198040a05a56dec2261516fb149823cf6 (patch) | |
tree | 710afa654265f59b4adfe2da795fe2b747c462b0 /tests/expr.test | |
parent | de211e0288bd2cd8e27ab23252ec2e4077b3d589 (diff) | |
download | toybox-ef6a773198040a05a56dec2261516fb149823cf6.tar.gz |
Refactor expr and add another test entry that works with TEST_HOST=1 but not with the one in pending.
Diffstat (limited to 'tests/expr.test')
-rw-r--r-- | tests/expr.test | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/expr.test b/tests/expr.test index 1c038a5c..33900d7a 100644 --- a/tests/expr.test +++ b/tests/expr.test @@ -17,3 +17,5 @@ testing "expr % * same priority" "expr 3 % 2 \* 4" "4\n" "" "" testing "expr * % same priority" "expr 3 \* 2 % 4" "2\n" "" "" testing "expr = > same priority" "expr 0 = 2 \> 3" "0\n" "" "" testing "expr > = same priority" "expr 3 \> 2 = 1" "1\n" "" "" +testing "expr string becomes integer" "expr ab21xx : '[^0-9]*\([0-9]*\)' + 3" \ + "24\n" "" "" |