Skip to content

Commit

Permalink
tests: fix indentation and call setlocale
Browse files Browse the repository at this point in the history
  • Loading branch information
ueno committed Jul 5, 2013
1 parent 65a0ce4 commit 7af1cc9
Show file tree
Hide file tree
Showing 19 changed files with 141 additions and 154 deletions.
15 changes: 7 additions & 8 deletions tests/candidate-list.vala
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,14 @@ class CandidateListTests : Kkc.TestCase {
}
}

int main (string[] args)
{
Test.init (ref args);
Kkc.init ();
int main (string[] args) {
Test.init (ref args);
Kkc.init ();

TestSuite root = TestSuite.get_root ();
root.add_suite (new CandidateListTests ().get_suite ());
TestSuite root = TestSuite.get_root ();
root.add_suite (new CandidateListTests ().get_suite ());

Test.run ();
Test.run ();

return 0;
return 0;
}
15 changes: 7 additions & 8 deletions tests/candidate.vala
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@ class CandidateTests : Kkc.TestCase {
}
}

int main (string[] args)
{
Test.init (ref args);
Kkc.init ();
int main (string[] args) {
Test.init (ref args);
Kkc.init ();

TestSuite root = TestSuite.get_root ();
root.add_suite (new CandidateTests ().get_suite ());
TestSuite root = TestSuite.get_root ();
root.add_suite (new CandidateTests ().get_suite ());

Test.run ();
Test.run ();

return 0;
return 0;
}
17 changes: 9 additions & 8 deletions tests/decoder.vala
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,16 @@ class DecoderTests : Kkc.TestCase {
}
}

int main (string[] args)
{
Test.init (ref args);
Kkc.init ();
int main (string[] args) {
Intl.setlocale (LocaleCategory.ALL, "");

TestSuite root = TestSuite.get_root ();
root.add_suite (new DecoderTests ().get_suite ());
Test.init (ref args);
Kkc.init ();

Test.run ();
TestSuite root = TestSuite.get_root ();
root.add_suite (new DecoderTests ().get_suite ());

return 0;
Test.run ();

return 0;
}
15 changes: 7 additions & 8 deletions tests/dictionary-list.vala
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,14 @@ class DictionaryListTests : Kkc.TestCase {
}
}

int main (string[] args)
{
Test.init (ref args);
Kkc.init ();
int main (string[] args) {
Test.init (ref args);
Kkc.init ();

TestSuite root = TestSuite.get_root ();
root.add_suite (new DictionaryListTests ().get_suite ());
TestSuite root = TestSuite.get_root ();
root.add_suite (new DictionaryListTests ().get_suite ());

Test.run ();
Test.run ();

return 0;
return 0;
}
15 changes: 7 additions & 8 deletions tests/encoding.vala
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,14 @@ class EncodingConverterTests : Kkc.TestCase {
}
}

int main (string[] args)
{
Test.init (ref args);
Kkc.init ();
int main (string[] args) {
Test.init (ref args);
Kkc.init ();

TestSuite root = TestSuite.get_root ();
root.add_suite (new EncodingConverterTests ().get_suite ());
TestSuite root = TestSuite.get_root ();
root.add_suite (new EncodingConverterTests ().get_suite ());

Test.run ();
Test.run ();

return 0;
return 0;
}
15 changes: 7 additions & 8 deletions tests/expression.vala
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,14 @@ class ExpressionTests : Kkc.TestCase {
}
}

int main (string[] args)
{
Test.init (ref args);
Kkc.init ();
int main (string[] args) {
Test.init (ref args);
Kkc.init ();

TestSuite root = TestSuite.get_root ();
root.add_suite (new ExpressionTests ().get_suite ());
TestSuite root = TestSuite.get_root ();
root.add_suite (new ExpressionTests ().get_suite ());

Test.run ();
Test.run ();

return 0;
return 0;
}
15 changes: 7 additions & 8 deletions tests/key-event.vala
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,14 @@ class KeyEventTests : Kkc.TestCase {
}
}

int main (string[] args)
{
Test.init (ref args);
Kkc.init ();
int main (string[] args) {
Test.init (ref args);
Kkc.init ();

TestSuite root = TestSuite.get_root ();
root.add_suite (new KeyEventTests ().get_suite ());
TestSuite root = TestSuite.get_root ();
root.add_suite (new KeyEventTests ().get_suite ());

Test.run ();
Test.run ();

return 0;
return 0;
}
15 changes: 7 additions & 8 deletions tests/keymap.vala
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,14 @@ class KeymapTests : Kkc.TestCase {
}
}

int main (string[] args)
{
Test.init (ref args);
Kkc.init ();
int main (string[] args) {
Test.init (ref args);
Kkc.init ();

TestSuite root = TestSuite.get_root ();
root.add_suite (new KeymapTests ().get_suite ());
TestSuite root = TestSuite.get_root ();
root.add_suite (new KeymapTests ().get_suite ());

Test.run ();
Test.run ();

return 0;
return 0;
}
15 changes: 7 additions & 8 deletions tests/language-model.vala
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,14 @@ class LanguageModelTests : Kkc.TestCase {
}
}

int main (string[] args)
{
Test.init (ref args);
Kkc.init ();
int main (string[] args) {
Test.init (ref args);
Kkc.init ();

TestSuite root = TestSuite.get_root ();
root.add_suite (new LanguageModelTests ().get_suite ());
TestSuite root = TestSuite.get_root ();
root.add_suite (new LanguageModelTests ().get_suite ());

Test.run ();
Test.run ();

return 0;
return 0;
}
15 changes: 7 additions & 8 deletions tests/metadata-file.vala
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,14 @@ class MetadataFileTests : Kkc.TestCase {
}
}

int main (string[] args)
{
Test.init (ref args);
Kkc.init ();
int main (string[] args) {
Test.init (ref args);
Kkc.init ();

TestSuite root = TestSuite.get_root ();
root.add_suite (new MetadataFileTests ().get_suite ());
TestSuite root = TestSuite.get_root ();
root.add_suite (new MetadataFileTests ().get_suite ());

Test.run ();
Test.run ();

return 0;
return 0;
}
17 changes: 9 additions & 8 deletions tests/rom-kana.vala
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,16 @@ class RomKanaTests : Kkc.TestCase {
}
}

int main (string[] args)
{
Test.init (ref args);
Kkc.init ();
int main (string[] args) {
Intl.setlocale (LocaleCategory.ALL, "");

TestSuite root = TestSuite.get_root ();
root.add_suite (new RomKanaTests ().get_suite ());
Test.init (ref args);
Kkc.init ();

Test.run ();
TestSuite root = TestSuite.get_root ();
root.add_suite (new RomKanaTests ().get_suite ());

return 0;
Test.run ();

return 0;
}
15 changes: 7 additions & 8 deletions tests/rule.vala
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,14 @@ class RuleTests : Kkc.TestCase {
}
}

int main (string[] args)
{
Test.init (ref args);
Kkc.init ();
int main (string[] args) {
Test.init (ref args);
Kkc.init ();

TestSuite root = TestSuite.get_root ();
root.add_suite (new RuleTests ().get_suite ());
TestSuite root = TestSuite.get_root ();
root.add_suite (new RuleTests ().get_suite ());

Test.run ();
Test.run ();

return 0;
return 0;
}
15 changes: 7 additions & 8 deletions tests/segment-list.vala
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ class SegmentListTests : Kkc.TestCase {
}
}

int main (string[] args)
{
Test.init (ref args);
Kkc.init ();
int main (string[] args) {
Test.init (ref args);
Kkc.init ();

TestSuite root = TestSuite.get_root ();
root.add_suite (new SegmentListTests ().get_suite ());
TestSuite root = TestSuite.get_root ();
root.add_suite (new SegmentListTests ().get_suite ());

Test.run ();
Test.run ();

return 0;
return 0;
}
15 changes: 7 additions & 8 deletions tests/segment.vala
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ class SegmentTests : Kkc.TestCase {
}
}

int main (string[] args)
{
Test.init (ref args);
Kkc.init ();
int main (string[] args) {
Test.init (ref args);
Kkc.init ();

TestSuite root = TestSuite.get_root ();
root.add_suite (new SegmentTests ().get_suite ());
TestSuite root = TestSuite.get_root ();
root.add_suite (new SegmentTests ().get_suite ());

Test.run ();
Test.run ();

return 0;
return 0;
}
15 changes: 7 additions & 8 deletions tests/system-dictionary.vala
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,14 @@ class SystemDictionaryTests : Kkc.TestCase {
}
}

int main (string[] args)
{
Test.init (ref args);
Kkc.init ();
int main (string[] args) {
Test.init (ref args);
Kkc.init ();

TestSuite root = TestSuite.get_root ();
root.add_suite (new SystemDictionaryTests ().get_suite ());
TestSuite root = TestSuite.get_root ();
root.add_suite (new SystemDictionaryTests ().get_suite ());

Test.run ();
Test.run ();

return 0;
return 0;
}
17 changes: 9 additions & 8 deletions tests/template.vala
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,16 @@ class TemplateTests : Kkc.TestCase {
}
}

int main (string[] args)
{
Test.init (ref args);
Kkc.init ();
int main (string[] args) {
Intl.setlocale (LocaleCategory.ALL, "");

TestSuite root = TestSuite.get_root ();
root.add_suite (new TemplateTests ().get_suite ());
Test.init (ref args);
Kkc.init ();

Test.run ();
TestSuite root = TestSuite.get_root ();
root.add_suite (new TemplateTests ().get_suite ());

return 0;
Test.run ();

return 0;
}
15 changes: 7 additions & 8 deletions tests/trellis-node.vala
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,14 @@ class TrellisNodeTests : Kkc.TestCase {
}
}

int main (string[] args)
{
Test.init (ref args);
Kkc.init ();
int main (string[] args) {
Test.init (ref args);
Kkc.init ();

TestSuite root = TestSuite.get_root ();
root.add_suite (new TrellisNodeTests ().get_suite ());
TestSuite root = TestSuite.get_root ();
root.add_suite (new TrellisNodeTests ().get_suite ());

Test.run ();
Test.run ();

return 0;
return 0;
}
Loading

0 comments on commit 7af1cc9

Please sign in to comment.