Permalink
Browse files

No import in fib.jsx, to avoid failure in try-source-map.html

  • Loading branch information...
1 parent d91d26e commit 841930a3df68fb846693d63706cad7ace2674440 @gfx gfx committed May 31, 2012
Showing with 16 additions and 16 deletions.
  1. +0 −16 example/fib.jsx
  2. +16 −0 example/import.jsx
View
@@ -1,4 +1,3 @@
-import "test-case.jsx";
class Fib {
@@ -45,18 +44,3 @@ class _Main {
}
}
-class _Test extends TestCase {
- function testFib1() : void {
- this.expect(Fib.fib1(10)).toBe(55);
- }
- function testFib2() : void {
- this.expect(Fib.fib2(10)).toBe(55);
- }
- function testFib3() : void {
- this.expect(Fib.fib3(10)).toBe(55);
- }
- function testFib4() : void {
- this.expect(Fib.fib4(10)).toBe(55);
- }
-}
-
View
@@ -1,8 +1,24 @@
import "fib.jsx";
+import "test-case.jsx";
class _Main {
static function main(args : string[]) : void {
log "fib(10)=" + Fib.fib1(10).toString();
}
}
+class _Test extends TestCase {
+ function testFib1() : void {
+ this.expect(Fib.fib1(10)).toBe(55);
+ }
+ function testFib2() : void {
+ this.expect(Fib.fib2(10)).toBe(55);
+ }
+ function testFib3() : void {
+ this.expect(Fib.fib3(10)).toBe(55);
+ }
+ function testFib4() : void {
+ this.expect(Fib.fib4(10)).toBe(55);
+ }
+}
+

0 comments on commit 841930a

Please sign in to comment.