Skip to content

Commit

Permalink
Fixed age category builder toString
Browse files Browse the repository at this point in the history
  • Loading branch information
Meshulam Silk committed Apr 12, 2015
1 parent fe033bd commit c44513a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/312/categories/age_geek_code_category.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ class AgeGeekCodeCategory extends GeekCodeCategory {
: this._builder = builder,
super(builder, grade);

String toString() => super.toString() + "${_builder._age}";
String toString() => super.toString() + (_builder._age != null ? _builder._age : "");
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: geek_code
version: 2.0.0
version: 2.0.1
author: Meshulam Silk <[email protected]>
description: Dart implementation of The Geek Code
homepage: http://moomoohk.github.io/projects/geek_code
Expand Down
2 changes: 1 addition & 1 deletion test/all_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ main() {
GeekCodeV312 code = new GeekCodeV312([G312.IT, G312.CS, G312.B, G312.C] as List<GeekCodeType>)
..addCategory(d.refuse())
..addCategory(s.refuse())
..addCategory(a.age(20))
..addCategory(a.grade(new GeekCodeGrade(1)))
..addCategory(C.grade(new GeekCodeGrade(2)))
..addCategory(U.refuse())
..addCategory(P.noKnowledge())
Expand Down

0 comments on commit c44513a

Please sign in to comment.