Permalink
Browse files

Reenabled math tests for iOS. Everyone likes math tests.

  • Loading branch information...
1 parent aa31bfb commit 78fc726c3935fb6bc005792d3010c9d048218431 @timburks timburks committed Jun 19, 2011
Showing with 4 additions and 13 deletions.
  1. +2 −11 MacOS/Nu-framework/NuApp/NuAppDelegate.m
  2. +2 −2 test/test_math.nu
@@ -45,17 +45,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
NuInit();
- NSString *s;
- s = [NSString stringWithContentsOfFile:[[NSBundle mainBundle]
- pathForResource:@"nu" ofType:@"nu"]
- encoding:NSUTF8StringEncoding
- error:NULL];
- [[Nu sharedParser] parseEval:s];
- s = [NSString stringWithContentsOfFile:[[NSBundle mainBundle]
- pathForResource:@"test" ofType:@"nu"]
- encoding:NSUTF8StringEncoding
- error:NULL];
- [[Nu sharedParser] parseEval:s];
+ [[Nu sharedParser] parseEval:@"(load \"nu.nu\""];
+ [[Nu sharedParser] parseEval:@"(load \"test.nu\""];
NSString *resourceDirectory = [[NSBundle mainBundle] resourcePath];
View
@@ -2,7 +2,7 @@
;; tests for Nu math functions.
;;
;; Copyright (c) 2007 Michael Burks/Tim Burks, Radtastical Inc.
-(if (eq (uname) "Darwin")
+
(load "math")
(set PI 3.14159)
(set E 2.71828)
@@ -163,4 +163,4 @@
(assert_equal nil (not t))
(assert_equal t (not 0))
(assert_equal t (not nil))))
-)
+

0 comments on commit 78fc726

Please sign in to comment.