Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes Genie support and adds a test case

Patch for Genie support was missing mapping in  src/hash/parsers.gperf
file. It was also missing tests.
  • Loading branch information...
commit 4fb66a8bff6756965ca9b6694ad57439d4af6f0c 1 parent 3bd4c8e
@amujumdar amujumdar authored
View
1  src/hash/parsers.gperf
@@ -137,6 +137,7 @@ forth, parse_forth
fortranfixed, parse_fortranfixed
fortranfree, parse_fortranfree
fsharp, parse_fsharp
+genie, parse_genie
glsl, parse_glsl
golang, parse_golang
groovy, parse_groovy
View
38 test/detect_files/client-osx.gs
@@ -0,0 +1,38 @@
+/*
+ * WebSoy - Client for OSX
+ * Copyright (C) 2011,2012 Copyleft Games Group
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published
+ * by the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program; if not, see http://www.gnu.org/licenses
+ *
+ */
+
+#if XP_MACOSX
+
+[indent=4]
+uses
+ GLib
+ GL
+
+class Client : Object
+ scene : soy.scenes.Scene
+ window : soy.widgets.Window
+
+ construct (window : NP.Window)
+ self.scene = new soy.scenes.Scene()
+ self.window = new soy.widgets.Window(null)
+
+ // TODO
+
+#endif
+
View
5 test/unit/detector_test.h
@@ -204,6 +204,10 @@ void test_detector_puppet(){
ASSERT_DETECT(LANG_PUPPET, "puppet_test.pp");
}
+void test_detector_genie(){
+ ASSERT_DETECT(LANG_GENIE, "client-osx.gs");
+}
+
void test_non_existent_file(){
ASSERT_NODETECT("xxx_non_exists_xxxi.pp");
}
@@ -227,5 +231,6 @@ void all_detector_tests() {
test_detector_brainfuck();
test_detector_emacs_mode();
test_detector_puppet();
+ test_detector_genie();
test_non_existent_file();
}
Please sign in to comment.
Something went wrong with that request. Please try again.