Skip to content

Commit

Permalink
- [release] 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0wu committed Sep 1, 2012
1 parent fbe9f3f commit b1a85dd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ Greed is good
Release Note
------------

* __1.1__ - update C# version, thanks to @jbransen, major bug fix
#### 1.2

* bug fixing version, mainly fix bugs on "long long" in C++, C#, and Java

#### 1.1

* update C# version, thanks to @jbransen, major bug fix

Quick start
-----------
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'java'

group = 'greed'
version = '1.1'
version = '1.2'

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/greed/Greed.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
@SuppressWarnings("unused")
public class Greed {
public static final String APP_NAME = "Greed";
public static final String APP_VERSION = "v1.1";
public static final String APP_VERSION = "v1.2";

private Language currentLang;
private Problem currentProb;
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/greed/code/CStyleLanguageTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ public void parseStringArrayTest() {
public void parseOtherArrayTest() {
CppLanguage trait = CppLanguage.instance;
StringBuffer sb = new StringBuffer();
sb.append("{123LL, ");
sb.append("\n124LL\n,125LL,999LL,\n\n12LL\n,123LL\n } \n");
sb.append("{123, ");
sb.append("\n123\n,125,999,\n\n12\n,123\n } \n");
String[] parsedValueList = trait.parseValue(sb.toString(), new Param("arg", new Type(Primitive.LONG, 1))).getValueList();
for (String pv : parsedValueList)
System.out.println(pv);
Assert.assertArrayEquals("Parsed value is " + parsedValueList, parsedValueList,
new String[]{"123LL, 124LL, 125LL, 999LL, 12LL, 123LL"});
new String[]{"123LL, 123LL, 125LL, 999LL, 12LL, 123LL"});
}
}

0 comments on commit b1a85dd

Please sign in to comment.