diff options
author | Martin Odersky <odersky@gmail.com> | 2017-04-05 17:21:48 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-04-05 17:21:56 +0200 |
commit | 92018967be69ffe660a225f0b58f9772388678fe (patch) | |
tree | 709d56c9be91e9e39322a964ad621f94d59904b3 /tests/run/planets.scala | |
parent | f7027732a1d1e92f4d7525f2a984a24fdb7a0053 (diff) | |
download | dotty-92018967be69ffe660a225f0b58f9772388678fe.tar.gz dotty-92018967be69ffe660a225f0b58f9772388678fe.tar.bz2 dotty-92018967be69ffe660a225f0b58f9772388678fe.zip |
Update test and add check file
Diffstat (limited to 'tests/run/planets.scala')
-rw-r--r-- | tests/run/planets.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/run/planets.scala b/tests/run/planets.scala index 2fff01edc..bcbfd7eeb 100644 --- a/tests/run/planets.scala +++ b/tests/run/planets.scala @@ -18,7 +18,7 @@ object Test { import Planet._ assert(enumValueNamed("SATURN") == SATURN) assert(enumValue(2) == EARTH) - val earthWeight = args(0).toDouble + val earthWeight = 100 val mass = earthWeight/EARTH.surfaceGravity for (p <- enumValues) println(s"Your weight on $p is ${p.surfaceWeight(mass)}") |