Exemple #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'))
 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'))
Exemple #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'))
Exemple #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'))
Exemple #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'))
Exemple #6
0
 def test_is_macro_name_not_actual_macro(self):
     self.assertFalse(yasi.is_macro_name('files-with-code', 'lisp'))
 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'))
 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'))
 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'))
 def test_is_macro_name_not_actual_macro(self):
     self.assertFalse(yasi.is_macro_name('files-with-code', 'lisp'))