about summary refs log tree commit diff stats
path: root/src/chrtrans/makeuctb.c
Commit message (Expand)AuthorAgeFilesLines
* snapshot of project "lynx", label v2-8-8dev_16xThomas E. Dickey2013-11-281-3/+3
* snapshot of project "lynx", label v2-8-8dev_15iThomas E. Dickey2013-07-211-2/+5
* snapshot of project "lynx", label v2-8-8dev_12bThomas E. Dickey2012-07-051-3/+3
* snapshot of project "lynx", label v2-8-8dev_8mThomas E. Dickey2011-06-111-0/+893
* snapshot of project "lynx", label v2_8_8dev_9aThomas E. Dickey2011-06-111-893/+0
* snapshot of project "lynx", label v2-8-8dev_5eThomas E. Dickey2010-09-261-9/+9
* snapshot of project "lynx", label v2-8-8dev_5bThomas E. Dickey2010-09-221-6/+6
* snapshot of project "lynx", label v2-8-8dev_3eThomas E. Dickey2010-06-181-5/+5
* snapshot of project "lynx", label v2-8-8dev_3cThomas E. Dickey2010-05-031-0/+893
* snapshot of project "lynx", label v2_8_8dev_6cThomas E. Dickey2010-04-291-890/+0
* snapshot of project "lynx", label v2-8-8dev_1cThomas E. Dickey2009-11-241-2/+2
* snapshot of project "lynx", label v2-8-7dev_12aThomas E. Dickey2009-01-021-3/+1
* snapshot of project "lynx", label v2-8-7dev_11dThomas E. Dickey2009-01-011-1/+2
* snapshot of project "lynx", label v2-8-7dev_c-pbmThomas E. Dickey2008-02-101-2/+2
* snapshot of project "lynx", label v2-8-7dev_7cThomas E. Dickey2008-01-071-4/+11
* snapshot of project "lynx", label v2-8-7dev_5eThomas E. Dickey2007-07-311-1/+3
* snapshot of project "lynx", label v2-8-6pre_5Thomas E. Dickey2006-10-021-2/+4
* snapshot of project "lynx", label v2-8-6dev_19Thomas E. Dickey2006-08-311-0/+1
* snapshot of project "lynx", label v2-8-6dev_10Thomas E. Dickey2005-01-021-1/+2
* snapshot of project "lynx", label v2-8-6dev_9Thomas E. Dickey2004-12-301-9/+9
* snapshot of project "lynx", label v2-8-6dev_8Thomas E. Dickey2004-11-071-5/+6
* snapshot of project "lynx", label v2-8-6dev_3Thomas E. Dickey2004-05-071-150/+147
* snapshot of project "lynx", label v2-8-6dev_2Thomas E. Dickey2004-04-271-33/+33
* snapshot of project "lynx", label v2-8-6dev_1Thomas E. Dickey2004-04-201-26/+15
* snapshot of project "lynx", label v2-8-5pre_4Thomas E. Dickey2004-01-281-0/+1
* snapshot of project "lynx", label v2-8-5dev_17Thomas E. Dickey2004-01-081-9/+12
* snapshot of project "lynx", label v2-8-4dev_12Thomas E. Dickey2000-10-251-8/+11
* snapshot of project "lynx", label v2-8-3dev_23Thomas E. Dickey2000-03-271-1/+1
* snapshot of project "lynx", label v2-8-3dev_13Thomas E. Dickey1999-10-211-20/+23
* snapshot of project "lynx", label v2-8-3dev_12Thomas E. Dickey1999-10-151-3/+3
* snapshot of project "lynx", label v2-8-3dev_9Thomas E. Dickey1999-09-141-45/+138
* snapshot of project "lynx", label v2-8-3dev_7Thomas E. Dickey1999-08-261-1/+1
* snapshot of project "lynx", label v2-8-3dev_4Thomas E. Dickey1999-07-141-1/+0
* snapshot of project "lynx", label v2-8-2dev_8Thomas E. Dickey1998-12-031-5/+5
* snapshot of project "lynx", label v2-8-2dev_4Thomas E. Dickey1998-11-181-6/+26
* snapshot of project "lynx", label v2-8-2dev_2Thomas E. Dickey1998-11-101-27/+32
* snapshot of project "lynx", label v2-8-1dev_4Thomas E. Dickey1998-11-061-32/+27
* snapshot of project "lynx", label v2-8-1rel_1Thomas E. Dickey1998-10-241-1/+1
* snapshot of project "lynx", label v2-8-1pre_11Thomas E. Dickey1998-10-171-18/+28
* snapshot of project "lynx", label v2-8-1pre_3Thomas E. Dickey1998-09-271-0/+2
* snapshot of project "lynx", label v2-8-1dev_17Thomas E. Dickey1998-06-251-8/+1
* snapshot of project "lynx", label v2-8-1dev_5Thomas E. Dickey1998-03-291-4/+4
* snapshot of project "lynx", label v2-8pre_2Thomas E. Dickey1998-02-281-1/+1
* snapshot of project "lynx", label v2-7-1ac-0_117Thomas E. Dickey1998-02-271-1/+1
* snapshot of project "lynx", label v2-7-1ac_0-95Thomas E. Dickey1997-11-171-14/+24
* snapshot of project "lynx", label v2-7-1ac_0-93Thomas E. Dickey1997-11-071-11/+42
* snapshot of project "lynx", label v2-7-1ac_0-89Thomas E. Dickey1997-10-271-6/+76
* snapshot of project "lynx", label v2-7-1ac_0-76Thomas E. Dickey1997-10-061-9/+32
* snapshot of project "lynx", label v2-7-1ac_0-64Thomas E. Dickey1997-09-121-2/+2
* snapshot of project "lynx", label v2-7-1ac_0-36Thomas E. Dickey1997-07-181-411/+472
s="p">,3,1,2,3,1,2,3,2,3,2,1])) self.assertEqual( [1,[2,3]], u([1,[2,3],1,[2,3],[2,3],1,[2,3],1,[2,3],[2,3],1])) def test_unique_keeps_type(self): def u(x): return unique(x) self.assertEqual( [1,2,3], u([1,2,3,1])) self.assertEqual( (1,2,3), u((1,2,3,1))) self.assertEqual( set((1,2,3)), u(set((1,2,3,1)))) self.assertEqual( deque((1,2,3)), u(deque((1,2,3,1)))) def test_mount_path(self): # assuming ismount() is used def my_ismount(path): depth = path.count('/') if path.startswith('/media'): return depth == 0 or depth == 2 return depth <= 1 from ranger.ext import mount_path original_ismount = mount_path.ismount mount_path.ismount = my_ismount try: mp = mount_path.mount_path self.assertEqual('/home', mp('/home/hut/porn/bondage')) self.assertEqual('/', mp('/')) self.assertEqual('/media/sdb1', mp('/media/sdb1/foo/bar')) self.assertEqual('/media/sdc2', mp('/media/sdc2/a/b/c/d/e')) finally: mount_path.ismount = original_ismount # TODO: links are not tested but I don't see how its possible # without messing around with mounts. # self.assertEqual('/media/foo', # mount_path('/media/bar/some_link_to_a_foo_subdirectory')) def test_openstruct(self): from ranger.ext.openstruct import OpenStruct from random import randint, choice from string import ascii_letters os = OpenStruct(a='a') self.assertEqual(os.a, 'a') self.assertRaises(AttributeError, getattr, os, 'b') dictionary = {'foo': 'bar', 'zoo': 'zar'} os = OpenStruct(dictionary) self.assertEqual(os.foo, 'bar') self.assertEqual(os.zoo, 'zar') self.assertRaises(AttributeError, getattr, os, 'sdklfj') for i in range(100): attr_name = ''.join(choice(ascii_letters) \ for x in range(randint(3,9))) value = randint(100,999) if not attr_name in os: self.assertRaises(AttributeError, getattr, os, attr_name) setattr(os, attr_name, value) value2 = randint(100,999) setattr(os, attr_name, value2) self.assertEqual(value2, getattr(os, attr_name)) def test_shell_escape(self): from ranger.ext.shell_escape import shell_escape, shell_quote self.assertEqual(r"'luigi'\''s pizza'", shell_quote("luigi's pizza")) self.assertEqual(r"luigi\'s\ pizza", shell_escape("luigi's pizza")) self.assertEqual(r"\$lol/foo\\xyz\|\>\<\]\[", shell_escape(r"$lol/foo\xyz|><][")) if __name__ == '__main__': unittest.main()