typofix in regtest

This commit is contained in:
John Kerl 2021-12-21 22:55:50 -05:00
parent 8d718e8339
commit 99e4a23ac6
5 changed files with 70 additions and 72 deletions

View file

@ -12,7 +12,7 @@ build:
@echo "You can use 'make check' to run tests".
# For interactive use, 'mlr regtest' offers more options and transparency.
check: unit_test regression_test
check: unit-test regression-test
@echo "Tests complete. You can use 'make install' if you like, optionally preceded"
@echo "by './configure --prefix=/your/install/path' if you wish to install to"
@echo "somewhere other than /usr/local/bin -- the default prefix is /usr/local."

View file

@ -130,13 +130,11 @@ func TestFromFunction(t *testing.T) {
func TestFromArray(t *testing.T) {
mv := FromArray([]Mlrval{*FromInt(10)})
assert.Equal(t, MVType(MT_ARRAY), MVType(mv.mvtype))
assert.True(t, mv.printrepValid)
assert.Equal(t, 1, len(mv.arrayval))
}
func TestFromMap(t *testing.T) {
mv := FromMap(NewMlrmap())
assert.Equal(t, MVType(MT_MAP), MVType(mv.mvtype))
assert.True(t, mv.printrepValid)
assert.True(t, mv.mapval.IsEmpty())
}

View file

@ -1,23 +1,23 @@
x t y z
123 float 124 123.5
123.45 float 124.45 123.95
0123 float 84 83.5
07 float 8 7.5
08 float 9 8.5
0 float 1 0.5
0. float 1 0.5
0.0 float 1 0.5
0.01 float 1.01 0.51
0b0100 float 5 4.5
0x1000 float 4097 4096.5
-123 float -122 -122.5
-123.45 float -122.45 -122.95
-0123 float -82 -82.5
-0b0100 float -3 -3.5
-0x1000 float -4095 -4095.5
-07 float -6 -6.5
-08 float -7 -7.5
-0 float 1 0.5
-0. float 1 0.5
-0.0 float 1 0.5
-0.01 float 0.99 0.49
x t y z
123 float 124 123.5
123.45 float 124.45 123.95
0123 string (error) (error)
07 string (error) (error)
08 string (error) (error)
0 float 1 0.5
0. float 1 0.5
0.0 float 1 0.5
0.01 float 1.01 0.51
0b0100 float 5 4.5
0x1000 float 4097 4096.5
-123 float -122 -122.5
-123.45 float -122.45 -122.95
-0123 string (error) (error)
-0b0100 float -3 -3.5
-0x1000 float -4095 -4095.5
-07 string (error) (error)
-08 string (error) (error)
-0 float 1 0.5
-0. float 1 0.5
-0.0 float 1 0.5
-0.01 float 0.99 0.49

View file

@ -1,23 +1,23 @@
x t y z
123 int 124 123.5
123.45 float 124.45 123.95
0123 string (error) (error)
07 string (error) (error)
08 string (error) (error)
0 int 1 0.5
0. float 1 0.5
0.0 float 1 0.5
0.01 float 1.01 0.51
0b0100 int 5 4.5
0x1000 int 4097 4096.5
-123 int -122 -122.5
-123.45 float -122.45 -122.95
-0123 string (error) (error)
-0b0100 int -3 -3.5
-0x1000 int -4095 -4095.5
-07 string (error) (error)
-08 string (error) (error)
-0 int 1 0.5
-0. float 1 0.5
-0.0 float 1 0.5
-0.01 float 0.99 0.49
x t y z
123 int 124 123.5
123.45 float 124.45 123.95
0123 int 84 83.5
07 int 8 7.5
08 float 9 8.5
0 int 1 0.5
0. float 1 0.5
0.0 float 1 0.5
0.01 float 1.01 0.51
0b0100 int 5 4.5
0x1000 int 4097 4096.5
-123 int -122 -122.5
-123.45 float -122.45 -122.95
-0123 int -82 -82.5
-0b0100 int -3 -3.5
-0x1000 int -4095 -4095.5
-07 int -6 -6.5
-08 float -7 -7.5
-0 int 1 0.5
-0. float 1 0.5
-0.0 float 1 0.5
-0.01 float 0.99 0.49

View file

@ -1,23 +1,23 @@
x t y z
123 int 124 123.5
123.45 float 124.45 123.95
0123 int 84 83.5
07 int 8 7.5
08 float 9 8.5
0 int 1 0.5
0. float 1 0.5
0.0 float 1 0.5
0.01 float 1.01 0.51
0b0100 int 5 4.5
0x1000 int 4097 4096.5
-123 int -122 -122.5
-123.45 float -122.45 -122.95
-0123 int -82 -82.5
-0b0100 int -3 -3.5
-0x1000 int -4095 -4095.5
-07 int -6 -6.5
-08 float -7 -7.5
-0 int 1 0.5
-0. float 1 0.5
-0.0 float 1 0.5
-0.01 float 0.99 0.49
x t y z
123 int 124 123.5
123.45 float 124.45 123.95
0123 string (error) (error)
07 string (error) (error)
08 string (error) (error)
0 int 1 0.5
0. float 1 0.5
0.0 float 1 0.5
0.01 float 1.01 0.51
0b0100 int 5 4.5
0x1000 int 4097 4096.5
-123 int -122 -122.5
-123.45 float -122.45 -122.95
-0123 string (error) (error)
-0b0100 int -3 -3.5
-0x1000 int -4095 -4095.5
-07 string (error) (error)
-08 string (error) (error)
-0 int 1 0.5
-0. float 1 0.5
-0.0 float 1 0.5
-0.01 float 0.99 0.49