summaryrefslogtreecommitdiff
path: root/examples/scala-js/test-suite/src/test/scala/scala/scalajs/testsuite/scalalib/RangesTest.scala
blob: 511e1839cea8f7c2284576a7f08d92db2209d758 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*                     __                                               *\
**     ________ ___   / /  ___      __ ____  Scala.js Test Suite        **
**    / __/ __// _ | / /  / _ | __ / // __/  (c) 2013, LAMP/EPFL        **
**  __\ \/ /__/ __ |/ /__/ __ |/_// /_\ \    http://scala-js.org/       **
** /____/\___/_/ |_/____/_/ | |__/ /____/                               **
**                          |/____/                                     **
\*                                                                      */
package scala.scalajs.testsuite.scalalib

import org.scalajs.jasminetest.JasmineTest

object RangesTest extends JasmineTest {

  describe("Collection ranges") {

    it("Iterable.range should not emit dce warnings - #650") {
      Iterable.range(1, 10)
    }

    it("Iterable.range and simple range should be equal") {
      // Mostly to exercise more methods of ranges for dce warnings
      expect(Iterable.range(0, 10).toList == (0 until 10).toList).toBeTruthy
    }

  }

}