summaryrefslogtreecommitdiff
path: root/examples/crossBuilds/simple/library/shared/src/test/scala
diff options
context:
space:
mode:
authorLi Haoyi <haoyi@dropbox.com>2015-02-04 09:03:02 -0800
committerLi Haoyi <haoyi@dropbox.com>2015-02-04 09:03:02 -0800
commitfd2f23fbfb8ce6501fff20ea1c305d00249fb465 (patch)
tree87ae6a5e66096e988dbfb0bfad0f59b32bc84ce4 /examples/crossBuilds/simple/library/shared/src/test/scala
parent3e92267b4f030f7bc7f0040fef50bd07e4709b21 (diff)
downloadhands-on-scala-js-fd2f23fbfb8ce6501fff20ea1c305d00249fb465.tar.gz
hands-on-scala-js-fd2f23fbfb8ce6501fff20ea1c305d00249fb465.tar.bz2
hands-on-scala-js-fd2f23fbfb8ce6501fff20ea1c305d00249fb465.zip
Updated cross-publishing-libraries section
Diffstat (limited to 'examples/crossBuilds/simple/library/shared/src/test/scala')
-rw-r--r--examples/crossBuilds/simple/library/shared/src/test/scala/simple/SimpleTest.scala23
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/crossBuilds/simple/library/shared/src/test/scala/simple/SimpleTest.scala b/examples/crossBuilds/simple/library/shared/src/test/scala/simple/SimpleTest.scala
new file mode 100644
index 0000000..5c67baf
--- /dev/null
+++ b/examples/crossBuilds/simple/library/shared/src/test/scala/simple/SimpleTest.scala
@@ -0,0 +1,23 @@
+// library/shared/src/test/scala/simple/SimpleTest.scala
+
+package simple
+import utest._
+object SimpleTest extends TestSuite{
+ val tests = TestSuite{
+ 'format{
+ 'nil - assert(Simple.formatTimes(Nil) == Nil)
+ 'timeZero - {
+ val timestamps = Seq(0L, 1L << 32)
+ val expected = Seq(
+ "1970-01-01T00:00:00",
+ "1970-02-19T17:02:47"
+ )
+ val formatted = Simple.formatTimes(timestamps)
+ assert(formatted == expected)
+ }
+ }
+ 'zero{
+ 0.0
+ }
+ }
+} \ No newline at end of file