We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c508998 commit 77ca0a7Copy full SHA for 77ca0a7
1 file changed
example/cppadcg_c_codegen.py
@@ -42,4 +42,8 @@
42
langC = LanguageC("double", 3)
43
nameGen = LangCDefaultVariableNameGenerator("y","x","v","array","sarray")
44
code = handler.generateCode(langC, jac, nameGen, "source")
45
+output = code.splitlines()
46
+assert(output[0]==' y[1] = 0.5 * x[1] + 0.5 * x[1];')
47
+assert(output[1]==' // dependent variables without operations')
48
+assert(output[2]==' y[0] = 0.5;')
49
print(code)
0 commit comments