Last change
on this file since 404 was 404, checked in by wouter, 2 years ago |
#122 refactoring, creating separate packages for java core and jackson-translator (jackson-t)
|
File size:
529 bytes
|
Line | |
---|
1 | import sys
|
---|
2 | from typing import List
|
---|
3 |
|
---|
4 | class PrintStreamExample:
|
---|
5 | '''
|
---|
6 | Test for PrintStream. Uses several variants of print/println TODO also test
|
---|
7 | the other functions: write, append, printf, format etc
|
---|
8 | '''
|
---|
9 | @staticmethod
|
---|
10 | def main(args:List[str]) -> None:
|
---|
11 | sys.stdout.write("H")
|
---|
12 | sys.stdout.write("e")
|
---|
13 | sys.stdout.write(str(1))
|
---|
14 | sys.stdout.write(str(1.0))
|
---|
15 | sys.stdout.write(str(True))
|
---|
16 | sys.stdout.write('\n')
|
---|
17 | sys.stdout.write(''.join(["b","y","e"])+'\n')
|
---|
18 | if __name__ == "__main__":
|
---|
19 | PrintStreamExample.main(sys.argv[1:])
|
---|
Note:
See
TracBrowser
for help on using the repository browser.