зеркало из https://github.com/mozilla/pjs.git
Adding plain old documentation (pod) tests.
My plan is for tests of features to be put into multiple languages to make sure that reasonable things happen for each language (to test for bleeding between cross reference behavior).
This commit is contained in:
Родитель
6150ae0fb8
Коммит
593b8eb914
|
@ -0,0 +1,33 @@
|
|||
///bin/cc
|
||||
|
||||
printf("this is not a comment");
|
||||
|
||||
// this is a comment
|
||||
|
||||
printf("this is not a comment");
|
||||
|
||||
/*pod
|
||||
print "this block is a compiler error";
|
||||
*cut*/
|
||||
/*pod
|
||||
This is POD
|
||||
cut*/
|
||||
|
||||
printf("this is not a comment");
|
||||
|
||||
// this is a comment
|
||||
|
||||
printf("this is not a comment");
|
||||
|
||||
/*pod
|
||||
This is POD
|
||||
#comment
|
||||
cut*/
|
||||
|
||||
print "this is not a comment";
|
||||
|
||||
/*pod
|
||||
This is silly
|
||||
*^=cut/
|
||||
|
||||
printf("this is pod!");
|
|
@ -0,0 +1,33 @@
|
|||
#!/bin/perl
|
||||
|
||||
print "this is not a comment";
|
||||
|
||||
# this is a comment
|
||||
|
||||
print "this is not a comment";
|
||||
|
||||
=pod
|
||||
print "this block is a compiler error";
|
||||
=cut
|
||||
=pod
|
||||
This is POD
|
||||
=cut
|
||||
|
||||
print "this is not a comment";
|
||||
|
||||
# this is a comment
|
||||
|
||||
print "this is not a comment";
|
||||
|
||||
=pod
|
||||
This is POD
|
||||
#comment
|
||||
=cut
|
||||
|
||||
print "this is not a comment";
|
||||
|
||||
=pod
|
||||
This is silly
|
||||
^=cut
|
||||
|
||||
print "this is pod!";
|
Загрузка…
Ссылка в новой задаче