View Single Post
Old 23-10-2005, 19:34   #7
cisc
Senior Member
 
L'Avatar di cisc
 
Iscritto dal: Nov 2002
Cittā: Cosenza --> Roma
Messaggi: 853
aa, ho modificato il test:

Codice:
    public void testSpriteDrawWithArea()
    {
        Texture texture = new Texture("diamond");
        
        Sprite sprite = new Sprite(
            100, 
            200,
            0,          // texcoord0.x
            0,          // texcoord0.y
            12,         // texcoord1.x
            12,         // texcoord1.y
            texture, 
            Bounds.createForTesting());

        MockEngine engine = new MockEngine();
        
        sprite.draw(engine);
        
        assertEquals(112.0f, engine.getTexcoordXHigh());
        assertEquals(212.0f, engine.getTexcoordYHigh());
    }
in particolare ho modificato gli assert, a te fek
__________________
GNU MyServer Wants YOU!!
We live thinking we will never die. We die thinking we had never lived. Jason Becker
cisc č offline   Rispondi citando il messaggio o parte di esso