take 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4f683117b5d40dc796e5fef18255f3f16a3f005
4
- data.tar.gz: 2107ea1194a5da5ffc14658b1f248b43410b563a
3
+ metadata.gz: f5d0d29d3851a510f8626ba970068a3f3c0612f5
4
+ data.tar.gz: 5d69acf391054bd531c0e4fcbb5d96aefb0bd3c9
5
5
  SHA512:
6
- metadata.gz: 51ab66ab98bd63428cd1d8dce72282ee97348189cc18cfbe9cd6bb6e383b440c02bf30941df98196eb08d628b0b35c6ac8b9825132b817b6627d710f57fd8a83
7
- data.tar.gz: 086c7c3f47d0863fa575d3822f568c7b90668f13c2971bb7a174f9e25008100df6738ee2c927ef2277d6f5f6342608f19bc4c40a8d2b651c15e449a45163d7e8
6
+ metadata.gz: ed1607a384451b108d430eba81a997e868f9b3468579728403c593b36aceb5916347aa339cc6012b212d900c3a239b4ff7fbe2941a0b7e567343dcab294ce494
7
+ data.tar.gz: 8089140275254dc9c618528cc560193164f50c6716a67c5b83771a1f2f5eb94ebd07e2262daa273cb919533edc93bea9404fb591e5abc5cefec243697717628e
data/.gitignore CHANGED
@@ -14,3 +14,4 @@
14
14
  mkmf.log
15
15
  .project
16
16
  .project.rb
17
+ .c9
@@ -54,9 +54,7 @@ module Take
54
54
  // group #{group_name}
55
55
  void group_#{group_name}()
56
56
  {
57
-
58
- output(TEXT_COLOR_MAGENTA "\\tSET \\"" TEXT_COLOR_BOLD_MAGENTA
59
- "#{group_name}" TEXT_COLOR_MAGENTA "\\":\\n");
57
+ _uassert_group_start("#{group_name}");
60
58
  CODE
61
59
  @output << group.children.select(&:test?).
62
60
  map { |child| " test_#{group_name(child)}();" }.
@@ -65,7 +63,7 @@ CODE
65
63
  group.children.select(&:group?).
66
64
  each { |child| @output << " group_#{group_name}_" \
67
65
  "#{child.name}();\n" }
68
- @output << "}\n\n"
66
+ @output << " _uassert_group_stop();\n}\n\n"
69
67
 
70
68
 
71
69
  @groups.pop
@@ -75,10 +73,7 @@ CODE
75
73
  @output << <<-CODE
76
74
  void test_#{group_name(node)}()
77
75
  {
78
- tests++;
79
- int test_skip = 0, test_success = 1;
80
- output(TEXT_COLOR_MAGENTA "\\t\\tTEST \\"" TEXT_COLOR_BOLD_MAGENTA
81
- "#{node.name}" TEXT_COLOR_MAGENTA "\\": ");
76
+ _uassert_test_start("#{node.name}");
82
77
 
83
78
  CODE
84
79
  befores.each { |child| walk(child) }
@@ -88,20 +83,18 @@ CODE
88
83
 
89
84
  if(test_skip)
90
85
  {
91
- output(TEXT_COLOR_BOLD_YELLOW "PASS\\n");
86
+ _uassert_test_skip();
92
87
  }
93
88
  else if(test_success)
94
89
  {
95
- #ifdef VERBOSE
96
- output("\\n\\t\\t\\t" TEXT_COLOR_GREEN "OK\\n");
97
- #else
98
- output(TEXT_COLOR_BOLD_GREEN "OK\\n");
99
- #endif
90
+ _uassert_test_success();
100
91
  }
101
92
  else
102
93
  {
103
- failed++;
94
+ _uassert_test_fail();
104
95
  }
96
+
97
+ _uassert_test_end();
105
98
  }
106
99
  CODE
107
100
  end
@@ -132,8 +125,7 @@ CODE
132
125
  @output << <<-CODE
133
126
  int main()
134
127
  {
135
- output(TEXT_COLOR_MAGENTA "FILE \\"" TEXT_COLOR_BOLD_MAGENTA
136
- __FILE TEXT_COLOR_MAGENTA "\\":\\n");
128
+ _uassert_begin();
137
129
 
138
130
  CODE
139
131
 
@@ -141,11 +133,7 @@ CODE
141
133
  each { |child| @output << " group_#{child.name}();\n" }
142
134
 
143
135
  @output << <<-CODE
144
- output2("\\n\\t" TEXT_COLOR_MAGENTA "RESULT:\\n\\t\\t"
145
- "PASSED: " TEXT_COLOR_BOLD_MAGENTA "%zu"
146
- TEXT_COLOR_MAGENTA "\\n\\t\\tFAILED: "
147
- TEXT_COLOR_BOLD_MAGENTA "%zu" TEXT_COLOR_MAGENTA
148
- "\\n", tests - failed, failed);
136
+ _uassert_stop();
149
137
 
150
138
  return TEST_RETURN;
151
139
  }
data/lib/take/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Take
2
- VERSION = "0.0.11".freeze
2
+ VERSION = "0.0.12".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: take
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Rodi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-08 00:00:00.000000000 Z
11
+ date: 2014-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -133,9 +133,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  version: '0'
134
134
  requirements: []
135
135
  rubyforge_project:
136
- rubygems_version: 2.2.2
136
+ rubygems_version: 2.4.2
137
137
  signing_key:
138
138
  specification_version: 4
139
139
  summary: Manage your C projects better.
140
140
  test_files: []
141
- has_rdoc: