summaryrefslogtreecommitdiff
path: root/Windows/spice/tests/regression/parser/minus-minus.cir
diff options
context:
space:
mode:
authorrahulp132020-02-28 11:38:58 +0530
committerrahulp132020-02-28 11:38:58 +0530
commit246319682f60293b132fca1ce6e24689c6682617 (patch)
tree6871b758a17869efecfd617f5513e31f9a933f4a /Windows/spice/tests/regression/parser/minus-minus.cir
parentd9ab84106cac311d953f344386fef1c1e2bca1cf (diff)
downloadeSim-246319682f60293b132fca1ce6e24689c6682617.tar.gz
eSim-246319682f60293b132fca1ce6e24689c6682617.tar.bz2
eSim-246319682f60293b132fca1ce6e24689c6682617.zip
initial commit
Diffstat (limited to 'Windows/spice/tests/regression/parser/minus-minus.cir')
-rw-r--r--Windows/spice/tests/regression/parser/minus-minus.cir36
1 files changed, 36 insertions, 0 deletions
diff --git a/Windows/spice/tests/regression/parser/minus-minus.cir b/Windows/spice/tests/regression/parser/minus-minus.cir
new file mode 100644
index 00000000..b44c169a
--- /dev/null
+++ b/Windows/spice/tests/regression/parser/minus-minus.cir
@@ -0,0 +1,36 @@
+test dash dash
+
+* (exec-spice "ngspice -b %s")
+
+v1 1 0 '2--3'
+b2 2 0 v = 2--3
+
+.control
+
+define mismatch(a,b,err) abs(a-b)>err
+
+op
+
+let foo = 2--3
+
+if mismatch(v(1), 5.0, 1e-9)
+ echo "ERROR: v(1) failed"
+end
+
+if mismatch(v(2), 5.0, 1e-9)
+ echo "ERROR: v(2) failed"
+end
+
+if mismatch(foo, 5.0, 1e-9)
+ echo "ERROR: foo failed"
+end
+
+print v(1) v(2) foo
+
+echo "INFO: -- yes we can, print dash dash --"
+echo "INFO: -- yes we can, print upper and lower case --"
+quit 0
+
+.endc
+
+.end