Browse Source

[cpp] Correct version of test

Hugh 10 years ago
parent
commit
3e92340c54
1 changed files with 3 additions and 2 deletions
  1. 3 2
      tests/unit/src/unit/hxcpp_issues/Issue189.hx

+ 3 - 2
tests/unit/src/unit/hxcpp_issues/Issue189.hx

@@ -2,11 +2,12 @@ package unit.hxcpp_issues;
 
 
 class Issue189 extends Test {
-   function dynamicWidthDefaults(first=true, second=6, third=10.5) : Float {
+   dynamic function dynamicWidthDefaults(first=true, second=6, third=10.5) : Float {
       return first ? second : third;
    }
 	function test() {
-		eq(dynamicWidthDefaults(),10.5);
+		eq(dynamicWidthDefaults(),6);
+		eq(dynamicWidthDefaults(false),10.5);
 	}
 }