1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: make eprint[ln] behave same as print[ln] (#7595)

This commit is contained in:
zakuro
2020-12-27 19:22:16 +09:00
committed by GitHub
parent e69e5c5b91
commit 21805ea2a5
5 changed files with 13 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
fn test_print() {
println(2.0)
eprintln(2.0)
}

View File

@@ -10,6 +10,8 @@ fn test_autoprint_string_vargs() {
fn add_s(column string, other_columns ...string) {
println(column)
println(other_columns)
eprintln(column)
eprintln(other_columns)
}
//
@@ -23,6 +25,8 @@ fn test_autoprint_int_vargs() {
fn add_i(column int, other_columns ...int) {
println(column)
println(other_columns)
eprintln(column)
eprintln(other_columns)
}
//
@@ -41,4 +45,6 @@ fn test_autoprint_struct_vargs() {
fn add_point(column Point, other_columns ...Point) {
println(column)
println(other_columns)
eprintln(column)
eprintln(other_columns)
}