mirror of
https://github.com/open-goal/jak-project
synced 2026-05-31 17:32:51 -04:00
[decompiler] Print floats as neatly as possible (#307)
* [decompiler] Print floats as neatly as possible * style fixes * more * Update test.bat * Add and fix tests * Jesus christ fine
This commit is contained in:
@@ -289,31 +289,31 @@ TEST_F(DataDecompTest, ContinuePoint) {
|
||||
" :name \"finalboss-start\"\n"
|
||||
" :level 'finalboss\n"
|
||||
" :trans (new 'static 'vector\n"
|
||||
" :x 11548456.000000\n"
|
||||
" :y 2215872.000000\n"
|
||||
" :z -19409498.000000\n"
|
||||
" :w 1.000000\n"
|
||||
" :x 11548456.0\n"
|
||||
" :y 2215872.0\n"
|
||||
" :z -19409498.0\n"
|
||||
" :w 1.0\n"
|
||||
" )\n"
|
||||
" :quat (new 'static 'vector\n"
|
||||
" :y (the-as float #x3f3b851f)\n"
|
||||
" :w (the-as float #x3f2e425b)\n"
|
||||
" :y 0.7325\n"
|
||||
" :w 0.6807\n"
|
||||
" )\n"
|
||||
" :camera-trans (new 'static 'vector\n"
|
||||
" :x 11513311.000000\n"
|
||||
" :y (the-as float #x4a0869de)\n"
|
||||
" :z -19435708.000000\n"
|
||||
" :w 1.000000\n"
|
||||
" :x 11513311.0\n"
|
||||
" :y 2234999.5\n"
|
||||
" :z -19435708.0\n"
|
||||
" :w 1.0\n"
|
||||
" )\n"
|
||||
" :camera-rot (new 'static 'array 'float 9\n"
|
||||
" (the-as float #x3f169ad4)\n"
|
||||
" 0.000000\n"
|
||||
" (the-as float #xbf4ef9db)\n"
|
||||
" (the-as float #x3ddbf488)\n"
|
||||
" (the-as float #x3f7db8bb)\n"
|
||||
" (the-as float #x3d9ff2e5)\n"
|
||||
" (the-as float #x3f4d288d)\n"
|
||||
" (the-as float #xbe07fcb9)\n"
|
||||
" (the-as float #x3f15460b)\n"
|
||||
" 0.5883\n"
|
||||
" 0.0\n"
|
||||
" -0.8085\n"
|
||||
" 0.1074\n"
|
||||
" 0.9911\n"
|
||||
" 0.0781\n"
|
||||
" 0.8014\n"
|
||||
" -0.1328\n"
|
||||
" 0.5831\n"
|
||||
" )\n"
|
||||
" :load-commands (('special \"citb-exit-plat-4\" #t))\n"
|
||||
" :vis-nick 'fin\n"
|
||||
@@ -341,4 +341,4 @@ TEST_F(DataDecompTest, FloatArray) {
|
||||
check_forms_equal(decomp.print(),
|
||||
"(new 'static 'array 'float 7\n"
|
||||
"1.0 0.0 1.0 0.0 1.0 0.0 1.0)");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user