Debian Codegraph @

tests/check_string.py

raw
1 from citeproc.string import String, NoCase
2
3
4 a = String('a ')
5 b = String(' b ')
6 nocase = NoCase('NoCase')
7 nocase2 = NoCase('NoCaseTwo')
8
9 c = a + nocase + b + nocase2
10
11 print(c)
12 print(c.upper())
13 print(c.lower())
14
15 print('test' + b)
16 print('test ' + nocase)
17 print(a + 'test')
18 print(nocase + ' test')
19
20 print('test ' + c)
21 print(c + ' test')