generated from platypusguy/jacobin-swift
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
83 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Jacobin VM - A Java virtual machine | ||
* Copyright (c) 2023 by the Jacobin Authors. All rights reserved. | ||
* Licensed under Mozilla Public License 2.0 (MPL 2.0) Consult jacobin.org. | ||
*/ | ||
|
||
package gfunction | ||
|
||
import ( | ||
"jacobin/statics" | ||
"testing" | ||
) | ||
|
||
func TestJavaLangThrowableClinit(t *testing.T) { | ||
statics.Statics = make(map[string]statics.Static) | ||
|
||
throwableClinit(nil) | ||
_, ok := statics.Statics["Throwable.UNASSIGNED_STACK"] | ||
if !ok { | ||
t.Error("JavaLangThrowableClinit: Throwable.UNASSIGNED_STACK not found") | ||
} | ||
|
||
_, ok = statics.Statics["Throwable.SUPPRESSED_SENTINEL"] | ||
if !ok { | ||
t.Error("JavaLangThrowableClinit: Throwable.SUPPRESSED_SENTINEL not found") | ||
} | ||
|
||
_, ok = statics.Statics["Throwable.EMPTY_THROWABLE_ARRAY"] | ||
if !ok { | ||
t.Error("Throwable.EMPTY_THROWABLE_ARRAY not found") | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters