More tests for log and exp

This commit is contained in:
Stanisław Barzowski 2017-09-25 15:45:18 -04:00 committed by Dave Cunningham
parent 650825cd5a
commit 850575cf34
28 changed files with 28 additions and 0 deletions

1
testdata/builtin_exp2.golden vendored Normal file
View File

@ -0,0 +1 @@
1

1
testdata/builtin_exp2.jsonnet vendored Normal file
View File

@ -0,0 +1 @@
std.exp(0)

1
testdata/builtin_exp3.golden vendored Normal file
View File

@ -0,0 +1 @@
RUNTIME ERROR: Overflow

1
testdata/builtin_exp3.jsonnet vendored Normal file
View File

@ -0,0 +1 @@
std.exp(1000)

1
testdata/builtin_exp4.golden vendored Normal file
View File

@ -0,0 +1 @@
26881171418161356094253400435962903554686976

1
testdata/builtin_exp4.jsonnet vendored Normal file
View File

@ -0,0 +1 @@
std.exp(100)

1
testdata/builtin_exp5.golden vendored Normal file
View File

@ -0,0 +1 @@
RUNTIME ERROR: Overflow

1
testdata/builtin_exp5.jsonnet vendored Normal file
View File

@ -0,0 +1 @@
std.exp(100000000000000000000)

1
testdata/builtin_exp6.golden vendored Normal file
View File

@ -0,0 +1 @@
0.1353352832366127

1
testdata/builtin_exp6.jsonnet vendored Normal file
View File

@ -0,0 +1 @@
std.exp(-2)

1
testdata/builtin_exp7.golden vendored Normal file
View File

@ -0,0 +1 @@
0

1
testdata/builtin_exp7.jsonnet vendored Normal file
View File

@ -0,0 +1 @@
std.exp(-100000000000000000)

1
testdata/builtin_exp8.golden vendored Normal file
View File

@ -0,0 +1 @@
23.103866858722185

1
testdata/builtin_exp8.jsonnet vendored Normal file
View File

@ -0,0 +1 @@
std.exp(3.14)

1
testdata/builtin_log2.golden vendored Normal file
View File

@ -0,0 +1 @@
100

1
testdata/builtin_log2.jsonnet vendored Normal file
View File

@ -0,0 +1 @@
std.log(std.exp(100))

1
testdata/builtin_log3.golden vendored Normal file
View File

@ -0,0 +1 @@
80.590478254791606

1
testdata/builtin_log3.jsonnet vendored Normal file
View File

@ -0,0 +1 @@
std.log(100000000000000000000000000000000000)

1
testdata/builtin_log4.golden vendored Normal file
View File

@ -0,0 +1 @@
1.144222799920162

1
testdata/builtin_log4.jsonnet vendored Normal file
View File

@ -0,0 +1 @@
std.log(3.14)

1
testdata/builtin_log5.golden vendored Normal file
View File

@ -0,0 +1 @@
RUNTIME ERROR: Overflow

1
testdata/builtin_log5.jsonnet vendored Normal file
View File

@ -0,0 +1 @@
std.log(0)

1
testdata/builtin_log6.golden vendored Normal file
View File

@ -0,0 +1 @@
-36.841361487904734

1
testdata/builtin_log6.jsonnet vendored Normal file
View File

@ -0,0 +1 @@
std.log(0.0000000000000001)

1
testdata/builtin_log7.golden vendored Normal file
View File

@ -0,0 +1 @@
RUNTIME ERROR: Not a number

1
testdata/builtin_log7.jsonnet vendored Normal file
View File

@ -0,0 +1 @@
std.log(-1)

1
testdata/builtin_log8.golden vendored Normal file
View File

@ -0,0 +1 @@
RUNTIME ERROR: Not a number

1
testdata/builtin_log8.jsonnet vendored Normal file
View File

@ -0,0 +1 @@
std.log(-1000000000000)