Displaying 7 results from an estimated 7 matches for "assertfalse".
2009 May 08
0
[LLVMdev] Suggestion: Support union types in IR
Talin wrote:
> Chris Lattner wrote:
>> On Dec 30, 2008, at 12:41 PM, Talin wrote:
>>
>>> I've been thinking about how to represent unions or "disjoint types"
>>> in LLVM IR. At the moment, the only way I know to achieve this right
>>> now is to create a struct that is as large as the largest type in
>>> the union and then
2009 May 08
3
[LLVMdev] Suggestion: Support union types in IR
Chris Lattner wrote:
> On Dec 30, 2008, at 12:41 PM, Talin wrote:
>
>> I've been thinking about how to represent unions or "disjoint types"
>> in LLVM IR. At the moment, the only way I know to achieve this right
>> now is to create a struct that is as large as the largest type in
>> the union and then bitcast it to access the fields contained
2016 Feb 12
2
[PATCH] python: tests: use more targeted assert*() functions/checks
...;:
unittest.main ()
diff --git a/python/t/420-log-messages.py b/python/t/420-log-messages.py
index 002098e..6b7c06c 100644
--- a/python/t/420-log-messages.py
+++ b/python/t/420-log-messages.py
@@ -51,7 +51,7 @@ class Test420LogMessages (unittest.TestCase):
g.close ()
- self.assertFalse (log_invoked == 0)
+ self.assertNotEqual (log_invoked, 0)
if __name__ == '__main__':
unittest.main ()
diff --git a/python/t/800-explicit-close.py b/python/t/800-explicit-close.py
index 9b425af..4086829 100644
--- a/python/t/800-explicit-close.py
+++ b/python/t/800-explicit-cl...
2011 Feb 21
2
[LLVMdev] A working garbage collector - finally :)
...ther state containing a non-traceable
value (a float):
def testCollectUnionLocalVar {
var u:String or float = newString("Hello");
tart.gc.GC.collect();
assertTrue(u isa String);
assertEq("Hello", typecast[String](u));
u = 1.0;
tart.gc.GC.collect();
assertFalse(u isa String);
}
The heart of the collector is the TraceAction class - which is invoked for
each pointer reference. The tracer for the Tart language is written, of
course, in Tart, although the style is not the normal Tart style due to the
need to deal with low-level objects such as addresses an...
2016 Feb 22
3
[PATCH 1/3] python: tests: refactor to use unittest's discovery
...self.assertAlmostEqual (g.internal_test_rint64 ("10"), 10L, places=1)
-
- self.assertRaises (RuntimeError, g.internal_test_rint64err)
-
-
- def test_rbool (self):
- g = guestfs.GuestFS ()
-
- self.assertTrue (g.internal_test_rbool ("true"))
- self.assertFalse (g.internal_test_rbool ("false"))
-
- self.assertRaises (RuntimeError, g.internal_test_rboolerr)
-
-
- def test_rconststring (self):
- g = guestfs.GuestFS ()
-
- self.assertEqual (g.internal_test_rconststring ("test"), "static string")
-
-...
2016 Feb 15
1
[PATCH] Start adding return values tests for bindings
...self.assertAlmostEqual (g.internal_test_rint64 ("10"), 10L, places=1)
+
+ self.assertRaises (RuntimeError, g.internal_test_rint64err)
+
+
+ def test_rbool (self):
+ g = guestfs.GuestFS ()
+
+ self.assertTrue (g.internal_test_rbool ("true"))
+ self.assertFalse (g.internal_test_rbool ("false"))
+
+ self.assertRaises (RuntimeError, g.internal_test_rboolerr)
+
+
+ def test_rconststring (self):
+ g = guestfs.GuestFS ()
+
+ self.assertEqual (g.internal_test_rconststring ("test"), "static string")
+
+...
2016 May 04
9
[PATCH 0/8] python: PEP 8 fixes
Hi,
this series cleans up the Python sources, either static or generated,
including also tests, to make them PEP 8 compliant; see
https://www.python.org/dev/peps/pep-0008/ and tools like pep8.
Almost all the issues reported by pep8 are fixed, reducing the issues
from 3818 to 7.
The changes should have no effect on the actual code, while it will
help Python users with consistency with other