mirror of
https://github.com/revanced/smali.git
synced 2025-05-04 16:44:25 +02:00
added tests for format 31i
git-svn-id: https://smali.googlecode.com/svn/trunk@123 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
parent
bc0e62e21e
commit
79e963c089
@ -0,0 +1,41 @@
|
|||||||
|
.class public LFormat31i;
|
||||||
|
.super Ljava/lang/Object;
|
||||||
|
.source "Format31i.smali"
|
||||||
|
|
||||||
|
.method public constructor <init>()V
|
||||||
|
.registers 1
|
||||||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||||
|
return-void
|
||||||
|
.end method
|
||||||
|
|
||||||
|
.method public test_const()V
|
||||||
|
.registers 2
|
||||||
|
.annotation runtime Lorg/junit/Test;
|
||||||
|
.end annotation
|
||||||
|
|
||||||
|
const v0, 0x10000000
|
||||||
|
|
||||||
|
invoke-static {v0}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;
|
||||||
|
move-result-object v1
|
||||||
|
|
||||||
|
const-string v0, "268435456"
|
||||||
|
|
||||||
|
invoke-static {v0, v1}, Lorg/junit/Assert;->assertEquals(Ljava/lang/Object;Ljava/lang/Object;)V
|
||||||
|
return-void
|
||||||
|
.end method
|
||||||
|
|
||||||
|
.method public test_const-wide-32()V
|
||||||
|
.registers 2
|
||||||
|
.annotation runtime Lorg/junit/Test;
|
||||||
|
.end annotation
|
||||||
|
|
||||||
|
const-wide/32 v0, 0x10000000
|
||||||
|
|
||||||
|
invoke-static {v0, v1}, Ljava/lang/Long;->toString(J)Ljava/lang/String;
|
||||||
|
move-result-object v1
|
||||||
|
|
||||||
|
const-string v0, "268435456"
|
||||||
|
|
||||||
|
invoke-static {v0, v1}, Lorg/junit/Assert;->assertEquals(Ljava/lang/Object;Ljava/lang/Object;)V
|
||||||
|
return-void
|
||||||
|
.end method
|
@ -39,6 +39,7 @@
|
|||||||
LFormat22x;,
|
LFormat22x;,
|
||||||
LFormat23x;,
|
LFormat23x;,
|
||||||
LFormat30t;,
|
LFormat30t;,
|
||||||
|
LFormat31i;,
|
||||||
LFormat32x;,
|
LFormat32x;,
|
||||||
LFormat35c;,
|
LFormat35c;,
|
||||||
LFormat3rc;
|
LFormat3rc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user