Skip to content

Commit

Permalink
line breaks in c++ code (cont)
Browse files Browse the repository at this point in the history
  • Loading branch information
kangwonlee committed Aug 3, 2019
1 parent 6a0a326 commit 626dea9
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion test_build_markdown_cpp_cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,39 @@
'\n'
)},
{'result': 0, 'cpp_filename': 'account_module.cpp'}],
[{'cell_type': 'markdown', 'metadata': {}, 'source': '\n``` C++\n// Begin account_module_user.cpp\n#include <iostream>\n#include <cstdint>\n\n#include "account_module.h"\n\nusing namespace std;\n\nint32_t main(int32_t argn, char * argv[]){\n\n cout << "account_module.check() = "<< check() <<\'\\n\';\n\n deposit(10000);\n\n cout << "account_module.check() = "<< check() <<\'\\n\';\n\n withdraw(3000);\n\n cout << "account_module.check() = "<< check() <<\'\\n\';\n\n deposit(5000);\n\n cout << "account_module.check() = "<< check() <<\'\\n\';\n\n return 0;\n}\n// End account_module_user.cpp\n// Build command : g++ -Wall -g account_module.cpp account_module_user.cpp -o account_module_user\n```\n\n'},
[{'cell_type': 'markdown', 'metadata': {}, 'source': (
'``` C++\n'
'// Begin account_module_user.cpp\n'
'#include <iostream>\n'
'#include <cstdint>\n'
'\n'
'#include "account_module.h"\n'
'\n'
'using namespace std;\n'
'\n'
'int32_t main(int32_t argn, char * argv[]){\n'
'\n'
' cout << "account_module.check() = "<< check() <<\'\\n\';\n'
'\n'
' deposit(10000);\n'
'\n'
' cout << "account_module.check() = "<< check() <<\'\\n\';\n'
'\n'
' withdraw(3000);\n'
'\n'
' cout << "account_module.check() = "<< check() <<\'\\n\';\n'
'\n'
' deposit(5000);\n'
'\n'
' cout << "account_module.check() = "<< check() <<\'\\n\';\n'
'\n'
' return 0;\n'
'}\n'
'// End account_module_user.cpp\n'
'// Build command : g++ -Wall -g account_module.cpp account_module_user.cpp -o account_module_user\n'
'```\n'
'\n'
)},
{'result': 0, 'cpp_filename': 'account_module_user.cpp'}],
[{'cell_type': 'markdown', 'metadata': {}, 'source': '``` C++\n// Begin account_module.h\n#include <cstdint>\n\nnamespace account {\n void deposit (int32_t amount);\n void withdraw (int32_t amount);\n int32_t check();\n}\n// End account_module.h\n```'},
{'result': 0, 'cpp_filename': 'account_module.h'}],
Expand Down

0 comments on commit 626dea9

Please sign in to comment.