Example #1
0
 def test_is_macro_name_lisp_macros(self):
     lisp_macro_list = [
         "defmacro",
         "define-macro",
         "defstruct"
     ]
     for x in lisp_macro_list:
         self.assertTrue(yasi.is_macro_name(x, 'lisp'))
Example #2
0
 def test_is_macro_name_lisp_macros(self):
     lisp_macro_list = [
         "defmacro",
         "define-macro",
         "defstruct"
     ]
     for x in lisp_macro_list:
         self.assertTrue(yasi.is_macro_name(x, 'lisp'))
Example #3
0
 def test_is_macro_name_clojure_macros(self):
     clojure_macro_list = [
         "defmacro"
     ]
     for x in clojure_macro_list:
         self.assertTrue(yasi.is_macro_name(x, 'clojure'))
Example #4
0
 def test_is_macro_name_scheme_macros(self):
     scheme_macro_list = [
     ]
     for x in scheme_macro_list:
         self.assertTrue(yasi.is_macro_name(x, 'scheme'))
Example #5
0
 def test_is_macro_name_newlisp_macros(self):
     newlisp_macro_list = [
     ]
     for x in newlisp_macro_list:
         self.assertTrue(yasi.is_macro_name(x, 'newlisp'))
Example #6
0
 def test_is_macro_name_not_actual_macro(self):
     self.assertFalse(yasi.is_macro_name('files-with-code', 'lisp'))
Example #7
0
 def test_is_macro_name_clojure_macros(self):
     clojure_macro_list = [
         "defmacro"
     ]
     for x in clojure_macro_list:
         self.assertTrue(yasi.is_macro_name(x, 'clojure'))
Example #8
0
 def test_is_macro_name_scheme_macros(self):
     scheme_macro_list = [
     ]
     for x in scheme_macro_list:
         self.assertTrue(yasi.is_macro_name(x, 'scheme'))
Example #9
0
 def test_is_macro_name_newlisp_macros(self):
     newlisp_macro_list = [
     ]
     for x in newlisp_macro_list:
         self.assertTrue(yasi.is_macro_name(x, 'newlisp'))
Example #10
0
 def test_is_macro_name_not_actual_macro(self):
     self.assertFalse(yasi.is_macro_name('files-with-code', 'lisp'))