Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
9280b746
Commit
9280b746
authored
Mar 09, 2010
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fmt: enable the complex tests now that 8g supports complex
R=rsc CC=golang-dev
https://golang.org/cl/357043
parent
38ad41c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
fmt_test.go
src/pkg/fmt/fmt_test.go
+0
-4
No files found.
src/pkg/fmt/fmt_test.go
View file @
9280b746
...
...
@@ -119,7 +119,6 @@ var fmttests = []fmtTest{
fmtTest
{
"% .3g"
,
-
1.0
,
"-1"
},
fmtTest
{
"% .3g"
,
1.0
,
" 1"
},
/* TODO: Enable when complex support is in all compilers
// complex values
fmtTest
{
"%+.3e"
,
0i
,
"(+0.000e+00+0.000e+00i)"
},
fmtTest
{
"%+.3f"
,
0i
,
"(+0.000+0.000i)"
},
...
...
@@ -139,7 +138,6 @@ var fmttests = []fmtTest{
fmtTest
{
"% .3E"
,
-
1
-
2i
,
"(-1.000E+00-2.000E+00i)"
},
fmtTest
{
"%+.3g"
,
complex64
(
1
+
2i
),
"(+1+2i)"
},
fmtTest
{
"%+.3g"
,
complex128
(
1
+
2i
),
"(+1+2i)"
},
*/
// erroneous formats
fmtTest
{
""
,
2
,
"?(extra int=2)"
},
...
...
@@ -232,12 +230,10 @@ var fmttests = []fmtTest{
fmtTest
{
"%v"
,
&
array
,
"&[1 2 3 4 5]"
},
fmtTest
{
"%v"
,
&
iarray
,
"&[1 hello 2.5 <nil>]"
},
/* TODO: Enable when complex support is in all compilers
// complexes with %v
fmtTest
{
"%v"
,
1
+
2i
,
"(1+2i)"
},
fmtTest
{
"%v"
,
complex64
(
1
+
2i
),
"(1+2i)"
},
fmtTest
{
"%v"
,
complex128
(
1
+
2i
),
"(1+2i)"
},
*/
// structs
fmtTest
{
"%v"
,
A
{
1
,
2
,
"a"
,
[]
int
{
1
,
2
}},
`{1 2 a [1 2]}`
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment