Added tests for format 21h

git-svn-id: https://smali.googlecode.com/svn/trunk@110 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
JesusFreke@JesusFreke.com 2009-06-06 22:37:31 +00:00
parent 8eb97cdedc
commit e80e6a7eb7
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,33 @@
.class public LFormat21h;
.super Ljava/lang/Object;
.source "Format21h.smali"
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public test_const-high16()V
.registers 2
.annotation runtime Lorg/junit/Test;
.end annotation
const/high16 v0, 0x3000
const v1, 0x30000000
invoke-static {v0, v1}, LAssert;->assertEquals(II)V
return-void
.end method
.method public test_const-wide-high16()V
.registers 4
.annotation runtime Lorg/junit/Test;
.end annotation
const-wide/high16 v0, 0x3000
const-wide v2, 0x3000000000000000L
invoke-static {v0, v1, v2, v3}, Lorg/junit/Assert;->assertEquals(JJ)V
return-void
.end method

View File

@ -28,6 +28,7 @@
LFormat11x;, LFormat11x;,
LFormat12x;, LFormat12x;,
LFormat20t;, LFormat20t;,
LFormat21h;,
LFormat21s;, LFormat21s;,
LFormat21t;, LFormat21t;,
LFormat22x;, LFormat22x;,