Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
typon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
cython-plus
typon
Commits
ee8c1fad
Commit
ee8c1fad
authored
Jul 08, 2022
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove obsolete test programs
parent
dad6e407
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
66 deletions
+0
-66
rt/tests/check.sh
rt/tests/check.sh
+0
-10
rt/tests/main.cpp
rt/tests/main.cpp
+0
-19
rt/tests/test_discard.cpp
rt/tests/test_discard.cpp
+0
-19
rt/tests/test_inline.cpp
rt/tests/test_inline.cpp
+0
-18
No files found.
rt/tests/check.sh
deleted
100755 → 0
View file @
dad6e407
#!/bin/bash
set
-e
rm
mixed_fibo
||
true
make mixed_fibo
for
i
in
{
0..100
}
do
./mixed_fibo
done
echo
"ok"
rt/tests/main.cpp
deleted
100644 → 0
View file @
dad6e407
#include <typon/task.hpp>
#include <cstdio>
using
namespace
typon
;
Task
<
int
>
fibo
(
int
n
)
{
if
(
n
<
2
)
{
co_return
n
;
}
int
a
=
co_await
fibo
(
n
-
1
);
int
b
=
co_await
fibo
(
n
-
2
);
co_return
a
+
b
;
}
int
main
()
{
int
result
=
fibo
(
40
).
call
();
printf
(
"%d
\n
"
,
result
);
}
rt/tests/test_discard.cpp
deleted
100644 → 0
View file @
dad6e407
#include <typon/task.hpp>
#include <cstdio>
using
namespace
typon
;
Task
<
int
>
add
(
int
a
,
int
b
)
{
printf
(
"add(%d, %d)
\n
"
,
a
,
b
);
co_return
a
+
b
;
}
Task
<
int
>
call_add_but_ignore_result
(
int
a
,
int
b
)
{
co_await
add
(
a
,
b
).
discard
();
co_return
1
;
}
int
main
()
{
call_add_but_ignore_result
(
2
,
3
).
call_discard
();
}
rt/tests/test_inline.cpp
deleted
100644 → 0
View file @
dad6e407
#include <typon/task.hpp>
#include <cstdio>
using
namespace
typon
;
Task
<
int
>
add
(
int
a
,
int
b
)
{
co_return
a
+
b
;
}
Task
<
int
>
add_indirection
(
int
a
,
int
b
)
{
co_return
co_await
add
(
a
,
b
);
}
int
main
()
{
int
result
=
add_indirection
(
2
,
3
).
call
();
return
result
;
}
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