Example #1
0
 def test_os_listdir(self):
     def fn():
         return os.listdir('.')
     res = self.ll_to_list(self.interpret(fn, []))
     res = [self.ll_to_string(s) for s in res]
     res.sort()
     assert res == sorted(os.listdir('.'))
Example #2
0
 def test_os_listdir(self):
     def fn():
         return os.listdir('.')
     res = self.ll_to_list(self.interpret(fn, []))
     res = [self.ll_to_string(s) for s in res]
     res.sort()
     assert res == sorted(os.listdir('.'))