This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
TestCase sample which loads module from directory above | |
implementing the following directory structure: | |
sample.py | |
test/test_sample.py | |
""" | |
import imp | |
import os | |
import sys | |
import unittest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <vector> | |
// Test suite controls test execution | |
class TestSuite { | |
public: | |
// Abstract test case | |
class TestCase { | |
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
String concatenation benchmark | |
Standard python string concatenation | |
vs custom (StringStream based on StringIO) | |
vs io streams (cStringIO, StringIO, io.BytesIO) | |
Test text: https://www.lipsum.com/ | |
Word wrap: https://appzaza.com/word-wrap | |
""" |