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