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 e113f99 commit 272dc97
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion test_build_markdown_cpp_cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,47 @@
'\n'
'```')},
{'result': 0, 'cpp_filename': 'account_module.h'}],
[{'cell_type': 'markdown', 'metadata': {}, 'source': '```C++\n// Begin account_module_user.cpp\n#include <iostream>\n#include <cstdint>\n\nnamespace account_a{\n #include "account_module.h"\n}\n\nnamespace account_b{\n #include "account_module.h"\n}\n\nusing namespace std;\n\nint32_t main(int32_t argn, char ** argv){\n\n cout << "account_a::check() = "<< account_a::check() <<\'\\n\';\n cout << "account_b::check() = "<< account_b::check() <<\'\\n\';\n\n account_a::deposit(10000);\n\n cout << "account_a::check() = "<< account_a::check() <<\'\\n\';\n cout << "account_b::check() = "<< account_b::check() <<\'\\n\';\n\n account_a::withdraw(3000);\n\n cout << "account_a::check() = "<< account_a::check() <<\'\\n\';\n cout << "account_b::check() = "<< account_b::check() <<\'\\n\';\n\n account_b::deposit(5000);\n\n cout << "account_a::check() = "<< account_a::check() <<\'\\n\';\n cout << "account_b::check() = "<< account_b::check() <<\'\\n\';\n\n return 0;\n}\n// End account_module_user.cpp\n```'},
[{'cell_type': 'markdown', 'metadata': {}, 'source': (
'```C++\n'
'// Begin account_module_user.cpp\n'
'#include <iostream>\n'
'#include <cstdint>\n'
'\n'
'namespace account_a{\n'
' #include "account_module.h"\n'
'}\n'
'\n'
'namespace account_b{\n'
' #include "account_module.h"\n'
'}\n'
'\n'
'using namespace std;\n'
'\n'
'int32_t main(int32_t argn, char ** argv){\n'
'\n'
' cout << "account_a::check() = "<< account_a::check() <<\'\\n\';\n'
' cout << "account_b::check() = "<< account_b::check() <<\'\\n\';\n'
'\n'
' account_a::deposit(10000);\n'
'\n'
' cout << "account_a::check() = "<< account_a::check() <<\'\\n\';\n'
' cout << "account_b::check() = "<< account_b::check() <<\'\\n\';\n'
'\n'
' account_a::withdraw(3000);\n'
'\n'
' cout << "account_a::check() = "<< account_a::check() <<\'\\n\';\n'
' cout << "account_b::check() = "<< account_b::check() <<\'\\n\';\n'
'\n'
' account_b::deposit(5000);\n'
'\n'
' cout << "account_a::check() = "<< account_a::check() <<\'\\n\';\n'
' cout << "account_b::check() = "<< account_b::check() <<\'\\n\';\n'
'\n'
' return 0;\n'
'}\n'
'// End account_module_user.cpp\n'
'```'
)},
{'result': 0, 'cpp_filename': 'account_module_user.cpp'}],
]

Expand Down

0 comments on commit 272dc97

Please sign in to comment.