Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
6c35af2c
Commit
6c35af2c
authored
27 years ago
by
Fredrik Hübinette (Hubbe)
Browse files
Options
Downloads
Patches
Plain Diff
fixed some tests
Rev: src/testsuite.in:1.91
parent
47dd8f45
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/testsuite.in
+20
-4
20 additions, 4 deletions
src/testsuite.in
with
20 additions
and
4 deletions
src/testsuite.in
+
20
−
4
View file @
6c35af2c
test_true([["$Id: testsuite.in,v 1.9
0
1998/04/14
15:08:53 hedda
Exp $"]])
test_true([["$Id: testsuite.in,v 1.9
1
1998/04/14
22:09:49 hubbe
Exp $"]])
test_eq(1e1,10.0)
test_eq(1e1,10.0)
test_eq(1E1,10.0)
test_eq(1E1,10.0)
test_eq(1e+1,10.0)
test_eq(1e+1,10.0)
...
@@ -189,9 +189,7 @@ test_program(inherit test; int a() { return foo; } )
...
@@ -189,9 +189,7 @@ test_program(inherit test; int a() { return foo; } )
test_define_program(test,[[class TEST { int a() { return 1; } }]])
test_define_program(test,[[class TEST { int a() { return 1; } }]])
test_program(inherit test; inherit TEST; )
test_program(inherit test; inherit TEST; )
dnl This test cannot be performed without a way to tell the
test_compile_error(class c { object(Stdio.File) foo=class {} ();})
dnl compiler that foo *is* an Stdio.File, not inherits an Stdio.File
dnl test_compile_error(class c { object(Stdio.File) foo; object(Regexp) bar=foo; })
test_do(class c { object foo; object(Regexp) bar=foo; })
test_do(class c { object foo; object(Regexp) bar=foo; })
test_do(class c { object(Stdio.File) foo; object bar=foo; })
test_do(class c { object(Stdio.File) foo; object bar=foo; })
test_any(if(int i=1) return i; return 0;,1)
test_any(if(int i=1) return i; return 0;,1)
...
@@ -561,10 +559,28 @@ test_any(function bar=clone(test)->foo; return bar(),17)
...
@@ -561,10 +559,28 @@ test_any(function bar=clone(test)->foo; return bar(),17)
// sscanf
// sscanf
test_any([[mixed a; return sscanf("11","%d",a)]],1)
test_any([[mixed a; return sscanf("11","%d",a)]],1)
test_any([[mixed a; sscanf("11","%d",a); return a]],11)
test_any([[mixed a; sscanf("11","%d",a); return a]],11)
test_any([[mixed a; sscanf("11","%o",a); return a]],011)
test_any([[mixed a; sscanf("11","%o",a); return a]],011)
test_any([[mixed a; sscanf("11","%x",a); return a]],0x11)
test_any([[mixed a; sscanf("11","%x",a); return a]],0x11)
test_any([[mixed a; sscanf("11","%D",a); return a]],11)
test_any([[mixed a; sscanf("11","%D",a); return a]],11)
test_any([[mixed a; sscanf("11","%2d",a); return a]],11)
test_any([[mixed a; sscanf("11","%2o",a); return a]],011)
test_any([[mixed a; sscanf("11","%2x",a); return a]],0x11)
test_any([[mixed a; sscanf("11","%2D",a); return a]],11)
test_any([[mixed a; sscanf("11","%4711d",a); return a]],11)
test_any([[mixed a; sscanf("11","%4711o",a); return a]],011)
test_any([[mixed a; sscanf("11","%4711x",a); return a]],0x11)
test_any([[mixed a; sscanf("11","%4711D",a); return a]],11)
test_any([[mixed a; sscanf("11","%1d",a); return a]],1)
test_any([[mixed a; sscanf("11","%1o",a); return a]],1)
test_any([[mixed a; sscanf("11","%1x",a); return a]],1)
test_any([[mixed a; sscanf("11","%1D",a); return a]],1)
test_any([[mixed a; sscanf("0x11","%D",a); return a]],0x11)
test_any([[mixed a; sscanf("0x11","%D",a); return a]],0x11)
test_any([[mixed a; sscanf("011","%D",a); return a]],011)
test_any([[mixed a; sscanf("011","%D",a); return a]],011)
test_any([[mixed a,b; return sscanf("11foo","%dfoo",a)]],1)
test_any([[mixed a,b; return sscanf("11foo","%dfoo",a)]],1)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment