Commits

Jonathan Eunice committed 7e2c400

fixed test

  • Participants
  • Parent commits 7d98b15

Comments (0)

Files changed (3)

 rapidly provide correct, highly-formatted ouput. Over time, ``say`` will provide
 higher-level formatting options. For now: indentation.
 
+Options Like Print
+==================
+
+
+
 Encodings
 =========
 
 
 setup(
     name='say',
-    version=verno("0.406"),
+    version=verno("0.412"),
     author='Jonathan Eunice',
     author_email='jonathan.eunice@gmail.com',
     description='Simple printing with templates. E.g.: say("Hello, {whoever}!", indent=1)',

File test/test.py

-
 
 import six, os
 from say import Say, fmt, stdout
     assert say('force no indent', indent=0) == 'force no indent'
     say.set(indent=0)
     assert say('no indent again') == 'no indent again'
-
+    
+def test_sep_end():
+    setup()
+    assert say(1, 2, 3) == '1 2 3'
+    assert say(1, 2, 3, sep=',') == '1,2,3'
+    assert say(1, 2, 3, sep=', ') == '1, 2, 3'
+    say('xyz', end='\n') == 'xyz\n'
+    say('xyz', end='\n\n') == 'xyz\n\n'
+    say('xyz', end='') == 'xyz'
 
 def test_indent_special():
     setup()