mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix and re-enable .doc tests.
This commit is contained in:
@@ -204,7 +204,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat
|
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat
|
||||||
cd tests\documentation
|
cd tests\documentation
|
||||||
rem call build.bat
|
call build.bat
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
- name: core:math/big tests
|
- name: core:math/big tests
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|||||||
@@ -727,10 +727,10 @@ Example:
|
|||||||
import "core:strconv"
|
import "core:strconv"
|
||||||
parse_f32_example :: proc() {
|
parse_f32_example :: proc() {
|
||||||
n, ok := strconv.parse_f32("1234eee")
|
n, ok := strconv.parse_f32("1234eee")
|
||||||
fmt.println(n, ok)
|
fmt.printfln("%.3f %v", n, ok)
|
||||||
|
|
||||||
n, ok = strconv.parse_f32("5678e2")
|
n, ok = strconv.parse_f32("5678e2")
|
||||||
fmt.println(n, ok)
|
fmt.printfln("%.3f %v", n, ok)
|
||||||
}
|
}
|
||||||
|
|
||||||
Output:
|
Output:
|
||||||
@@ -760,10 +760,10 @@ Example:
|
|||||||
import "core:strconv"
|
import "core:strconv"
|
||||||
parse_f64_example :: proc() {
|
parse_f64_example :: proc() {
|
||||||
n, ok := strconv.parse_f64("1234eee")
|
n, ok := strconv.parse_f64("1234eee")
|
||||||
fmt.println(n, ok)
|
fmt.printfln("%.3f %v", n, ok)
|
||||||
|
|
||||||
n, ok = strconv.parse_f64("5678e2")
|
n, ok = strconv.parse_f64("5678e2")
|
||||||
fmt.println(n, ok)
|
fmt.printfln("%.3f %v", n, ok)
|
||||||
}
|
}
|
||||||
|
|
||||||
Output:
|
Output:
|
||||||
@@ -796,10 +796,10 @@ Example:
|
|||||||
import "core:strconv"
|
import "core:strconv"
|
||||||
parse_f32_prefix_example :: proc() {
|
parse_f32_prefix_example :: proc() {
|
||||||
n, _, ok := strconv.parse_f32_prefix("1234eee")
|
n, _, ok := strconv.parse_f32_prefix("1234eee")
|
||||||
fmt.println(n, ok)
|
fmt.printfln("%.3f %v", n, ok)
|
||||||
|
|
||||||
n, _, ok = strconv.parse_f32_prefix("5678e2")
|
n, _, ok = strconv.parse_f32_prefix("5678e2")
|
||||||
fmt.println(n, ok)
|
fmt.printfln("%.3f %v", n, ok)
|
||||||
}
|
}
|
||||||
|
|
||||||
Output:
|
Output:
|
||||||
@@ -831,10 +831,10 @@ Example:
|
|||||||
import "core:strconv"
|
import "core:strconv"
|
||||||
parse_f64_prefix_example :: proc() {
|
parse_f64_prefix_example :: proc() {
|
||||||
n, _, ok := strconv.parse_f64_prefix("12.34eee")
|
n, _, ok := strconv.parse_f64_prefix("12.34eee")
|
||||||
fmt.println(n, ok)
|
fmt.printfln("%.3f %v", n, ok)
|
||||||
|
|
||||||
n, _, ok = strconv.parse_f64_prefix("12.34e2")
|
n, _, ok = strconv.parse_f64_prefix("12.34e2")
|
||||||
fmt.println(n, ok)
|
fmt.printfln("%.3f %v", n, ok)
|
||||||
}
|
}
|
||||||
|
|
||||||
Output:
|
Output:
|
||||||
@@ -1283,7 +1283,7 @@ Example:
|
|||||||
import "core:fmt"
|
import "core:fmt"
|
||||||
import "core:strconv"
|
import "core:strconv"
|
||||||
atof_example :: proc() {
|
atof_example :: proc() {
|
||||||
fmt.println(strconv.atof("3.14"))
|
fmt.printfln("%.3f", strconv.atof("3.14"))
|
||||||
}
|
}
|
||||||
|
|
||||||
Output:
|
Output:
|
||||||
|
|||||||
Reference in New Issue
Block a user