aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJoris2021-05-29 19:24:41 +0200
committerJoris2021-05-29 19:24:41 +0200
commitd48cafebb277e4ad4b31e883cbe4f55eef9ea4a4 (patch)
tree7f04fb49defa5fbc7984b0eee60bb7ce16a37ae2 /test
parent4e3cd92a8063a70dab9ae0ccafd0552c78c6e005 (diff)
Rewrite in TypeScript
Diffstat (limited to 'test')
-rw-r--r--test/Main.purs26
1 files changed, 0 insertions, 26 deletions
diff --git a/test/Main.purs b/test/Main.purs
deleted file mode 100644
index 25352df..0000000
--- a/test/Main.purs
+++ /dev/null
@@ -1,26 +0,0 @@
-module Test.Main where
-
-import Prelude
-import Control.Monad.Eff (Eff)
-import Test.Spec (describe, it)
-import Test.Spec.Assertions (shouldEqual)
-import Test.Spec.Reporter.Console (consoleReporter)
-import Test.Spec.Runner (RunnerEffects, run)
-
-import Format as Format
-
-main :: Eff (RunnerEffects ()) Unit
-main = run [consoleReporter] do
-
- describe "Format" do
- it "format numbers" $ do
- (Format.number 0 0.0) `shouldEqual` "0"
- (Format.number 0 (-0.0)) `shouldEqual` "0"
- (Format.number 0 8.0) `shouldEqual` "8"
- (Format.number 0 (-4.0)) `shouldEqual` "-4"
- (Format.number 2 25.0) `shouldEqual` "25,00"
- (Format.number 5 25.0) `shouldEqual` "25,00000"
- (Format.number 5 25.13) `shouldEqual` "25,13000"
- (Format.number 1 25.13) `shouldEqual` "25,1"
- (Format.number 1 25.15) `shouldEqual` "25,1"
- (Format.number 1 25.19) `shouldEqual` "25,2"