accept-case case-dsl-scientific-notation.sh

This commit is contained in:
John Kerl 2021-02-15 21:58:38 -05:00
parent 570e35693b
commit 42228a01d6
2 changed files with 48 additions and 48 deletions

View file

@ -6,31 +6,31 @@ DSL SCIENTIFIC NOTATION IN FIELD VALUES
mlr --opprint put $y=$x+1 ./reg-test/input/scinot.dkvp
x y
123 124
123. 124.000000
123.4 124.400000
.234 1.234000
1e2 101.000000
1e-2 1.010000
1.2e3 1201.000000
1.e3 1001.000000
1.2e-3 1.001200
1.e-3 1.001000
.2e3 201.000000
.2e-3 1.000200
1.e-3 1.001000
123. 124
123.4 124.4
.234 1.234
1e2 101
1e-2 1.01
1.2e3 1201
1.e3 1001
1.2e-3 1.0012
1.e-3 1.001
.2e3 201
.2e-3 1.0002
1.e-3 1.001
-123 -122
-123. -122.000000
-123.4 -122.400000
-.234 0.766000
-1e2 -99.000000
-1e-2 0.990000
-1.2e3 -1199.000000
-1.e3 -999.000000
-1.2e-3 0.998800
-1.e-3 0.999000
-.2e3 -199.000000
-.2e-3 0.999800
-1.e-3 0.999000
-123. -122
-123.4 -122.4
-.234 0.766
-1e2 -99
-1e-2 0.99
-1.2e3 -1199
-1.e3 -999
-1.2e-3 0.9988
-1.e-3 0.999
-.2e3 -199
-.2e-3 0.9998
-1.e-3 0.999
================================================================
@ -42,51 +42,51 @@ i y
mlr --opprint put $y = 123. + $i ./reg-test/input/scinot1.dkvp
i y
1 124.000000
1 124
mlr --opprint put $y = 123.4 + $i ./reg-test/input/scinot1.dkvp
i y
1 124.400000
1 124.4
mlr --opprint put $y = .234 + $i ./reg-test/input/scinot1.dkvp
i y
1 1.234000
1 1.234
mlr --opprint put $y = 1e2 + $i ./reg-test/input/scinot1.dkvp
i y
1 101.000000
1 101
mlr --opprint put $y = 1e-2 + $i ./reg-test/input/scinot1.dkvp
i y
1 1.010000
1 1.01
mlr --opprint put $y = 1.2e3 + $i ./reg-test/input/scinot1.dkvp
i y
1 1201.000000
1 1201
mlr --opprint put $y = 1.e3 + $i ./reg-test/input/scinot1.dkvp
i y
1 1001.000000
1 1001
mlr --opprint put $y = 1.2e-3 + $i ./reg-test/input/scinot1.dkvp
i y
1 1.001200
1 1.0012
mlr --opprint put $y = 1.e-3 + $i ./reg-test/input/scinot1.dkvp
i y
1 1.001000
1 1.001
mlr --opprint put $y = .2e3 + $i ./reg-test/input/scinot1.dkvp
i y
1 201.000000
1 201
mlr --opprint put $y = .2e-3 + $i ./reg-test/input/scinot1.dkvp
i y
1 1.000200
1 1.0002
mlr --opprint put $y = 1.e-3 + $i ./reg-test/input/scinot1.dkvp
i y
1 1.001000
1 1.001
mlr --opprint put $y = -123 + $i ./reg-test/input/scinot1.dkvp
i y
@ -94,49 +94,49 @@ i y
mlr --opprint put $y = -123. + $i ./reg-test/input/scinot1.dkvp
i y
1 -122.000000
1 -122
mlr --opprint put $y = -123.4 + $i ./reg-test/input/scinot1.dkvp
i y
1 -122.400000
1 -122.4
mlr --opprint put $y = -.234 + $i ./reg-test/input/scinot1.dkvp
i y
1 0.766000
1 0.766
mlr --opprint put $y = -1e2 + $i ./reg-test/input/scinot1.dkvp
i y
1 -99.000000
1 -99
mlr --opprint put $y = -1e-2 + $i ./reg-test/input/scinot1.dkvp
i y
1 0.990000
1 0.99
mlr --opprint put $y = -1.2e3 + $i ./reg-test/input/scinot1.dkvp
i y
1 -1199.000000
1 -1199
mlr --opprint put $y = -1.e3 + $i ./reg-test/input/scinot1.dkvp
i y
1 -999.000000
1 -999
mlr --opprint put $y = -1.2e-3 + $i ./reg-test/input/scinot1.dkvp
i y
1 0.998800
1 0.9988
mlr --opprint put $y = -1.e-3 + $i ./reg-test/input/scinot1.dkvp
i y
1 0.999000
1 0.999
mlr --opprint put $y = -.2e3 + $i ./reg-test/input/scinot1.dkvp
i y
1 -199.000000
1 -199
mlr --opprint put $y = -.2e-3 + $i ./reg-test/input/scinot1.dkvp
i y
1 0.999800
1 0.9998
mlr --opprint put $y = -1.e-3 + $i ./reg-test/input/scinot1.dkvp
i y
1 0.999000
1 0.999