Commits

timfel committed eace0d3

fix tests

  • Participants
  • Parent commits d6145fa
  • Branches bitblt

Comments (0)

Files changed (3)

File images/running-something-mini.image

Binary file modified.

File spyvm/test/test_miniimage.py

 def test_read_header():
     reader = open_miniimage(space)
     reader.read_header()
-    assert reader.endofmemory == 655196
-    assert reader.oldbaseaddress == -1220960256
-    assert reader.specialobjectspointer == -1220832384
+    assert reader.endofmemory == 726592
+    assert reader.oldbaseaddress == -1221464064
+    assert reader.specialobjectspointer == -1221336216
 
 def test_read_all_header(): 
     reader = open_miniimage(space)
    
 def test_special_classes0():
     image = get_image()
-    w = image.special(constants.SO_BITMAP_CLASS)
-    assert str(w) == "Bitmap class" 
+    # w = image.special(constants.SO_BITMAP_CLASS)
+    # assert str(w) == "Bitmap class" 
     w = image.special(constants.SO_SMALLINTEGER_CLASS)
     assert str(w) == "SmallInteger class" 
     w = image.special(constants.SO_STRING_CLASS)

File spyvm/test/test_primitives.py

     assert mock_display.fetch(space, 0) is w_bitmap
 
 def test_primitive_force_display_update(monkeypatch):
-    assert space.objtable["w_display"] is None
     mock_display = model.W_PointersObject(space.w_Point, 4)
     w_wordbmp = model.W_WordsObject(space.w_Array, 100)
     mock_display.store(space, 0, w_wordbmp) # bitmap