diff options
author | Haoyi Li <haoyi@haoyi-mbp.corp.dropbox.com> | 2014-11-26 00:50:50 -0800 |
---|---|---|
committer | Haoyi Li <haoyi@haoyi-mbp.corp.dropbox.com> | 2014-11-26 00:50:50 -0800 |
commit | 88595a41e3ec13c1a516e847fe3d0b279facf3fc (patch) | |
tree | 4f03b902de7b81fa2e32792e84b680038345e761 /examples/scala-js/test-suite/src/test/scala/scala/scalajs/testsuite/utils/JSUtils.scala | |
parent | 82773a11c99d260e97ca63356bfb7b417599b1e9 (diff) | |
download | hands-on-scala-js-88595a41e3ec13c1a516e847fe3d0b279facf3fc.tar.gz hands-on-scala-js-88595a41e3ec13c1a516e847fe3d0b279facf3fc.tar.bz2 hands-on-scala-js-88595a41e3ec13c1a516e847fe3d0b279facf3fc.zip |
killed
Diffstat (limited to 'examples/scala-js/test-suite/src/test/scala/scala/scalajs/testsuite/utils/JSUtils.scala')
-rw-r--r-- | examples/scala-js/test-suite/src/test/scala/scala/scalajs/testsuite/utils/JSUtils.scala | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/examples/scala-js/test-suite/src/test/scala/scala/scalajs/testsuite/utils/JSUtils.scala b/examples/scala-js/test-suite/src/test/scala/scala/scalajs/testsuite/utils/JSUtils.scala deleted file mode 100644 index 4b2ac62..0000000 --- a/examples/scala-js/test-suite/src/test/scala/scala/scalajs/testsuite/utils/JSUtils.scala +++ /dev/null @@ -1,26 +0,0 @@ -package scala.scalajs.testsuite.utils - -import scala.scalajs.js -import js.annotation.JSExport - -@JSExport("JSUtils") -object JSUtils { - /* We use java.lang.Character explicitly, because this class is used by - * tests that check that Chars are actually boxed by the compiler. - * If we rely on the compiler doing the job in here, we might have false - * positives just because the value was never boxed, and never unboxed. - */ - - @JSExport - def isChar(c: Any): Boolean = c.isInstanceOf[java.lang.Character] - - @JSExport - def stringToChar(s: String): java.lang.Character = { - assert(s.length == 1, "makeChar() requires a string of length 1") - new java.lang.Character(s.charAt(0)) - } - - @JSExport - def charToString(c: Any): String = - c.asInstanceOf[java.lang.Character].toString() -} |