summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2021-01-04 04:40:56 -0600
committerGitHub <noreply@github.com>2021-01-04 11:40:56 +0100
commit7c2c1ad0724c1a20063a7669912cdaf8767145e0 (patch)
tree21646bb64ef821111db0dfe418c4025f71b40f89
parentacf3715ea808d6ca5cfd94a340205d588fd50969 (diff)
downloadNim-7c2c1ad0724c1a20063a7669912cdaf8767145e0.tar.gz
enable tmath tests for JS backend (#16562)
-rw-r--r--tests/stdlib/tmath.nim11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/stdlib/tmath.nim b/tests/stdlib/tmath.nim
index 1b6fb4e9f..4176f70e8 100644
--- a/tests/stdlib/tmath.nim
+++ b/tests/stdlib/tmath.nim
@@ -1,13 +1,12 @@
 discard """
-  action: run
-  matrix:"; -d:nimTmathCase2 -d:danger --passc:-ffast-math"
+  targets: "c cpp js"
 """
 
-# xxx: fix bugs for js then add: targets:"c js"
+## xxx enable matrix:"; -d:nimTmathCase2 -d:danger --passc:-ffast-math"
 
-import math, random, os
-import unittest
-import sets, tables
+import std/[math, random, os]
+import std/[unittest]
+import std/[sets, tables]
 
 block: # random int
   block: # there might be some randomness