Skip to content

Commit

Permalink
replace tabs in test cases by spaces for uniformity
Browse files Browse the repository at this point in the history
Signed-off-by: czechbol <[email protected]>
  • Loading branch information
czechbol committed Aug 23, 2024
1 parent 6ab531c commit f537592
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions testutils/g115_samples.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,14 +286,14 @@ package main
import (
"fmt"
"math"
"math"
)
func main() {
var a int64 = 13
if a < math.MinInt32 || a > math.MaxInt32 {
panic("out of range")
}
if a < math.MinInt32 || a > math.MaxInt32 {
panic("out of range")
}
b := int32(a)
fmt.Printf("%d\n", b)
}
Expand All @@ -305,15 +305,15 @@ package main
import (
"fmt"
"math"
"math/rand"
"math"
"math/rand"
)
func main() {
a := rand.Int63()
if a < math.MinInt64 || a > math.MaxInt32 {
panic("out of range")
}
a := rand.Int63()
if a < math.MinInt64 || a > math.MaxInt32 {
panic("out of range")
}
b := int32(a)
fmt.Printf("%d\n", b)
}
Expand All @@ -325,15 +325,15 @@ package main
import (
"fmt"
"math"
"math"
)
func main() {
var a int32 = math.MaxInt32
if a < math.MinInt32 || a > math.MaxInt32 {
panic("out of range")
}
var b int64 = int64(a) * 2
var a int32 = math.MaxInt32
if a < math.MinInt32 || a > math.MaxInt32 {
panic("out of range")
}
var b int64 = int64(a) * 2
c := int32(b)
fmt.Printf("%d\n", c)
}
Expand All @@ -345,12 +345,12 @@ package main
import (
"fmt"
"strconv"
"strconv"
)
func main() {
var a string = "13"
b, _ := strconv.ParseInt(a, 10, 32)
b, _ := strconv.ParseInt(a, 10, 32)
c := int32(b)
fmt.Printf("%d\n", c)
}
Expand Down

0 comments on commit f537592

Please sign in to comment.