100+ results for 'hello world lisp'
Not the results you expected?
overload_simple_runme.pl
(https://swig.svn.sourceforge.net/svnroot/swig)
Perl · 199 lines
✨ Summary
This Perl code tests the functionality of the overload_simple
module, which provides a simple way to overload operators and functions for custom classes. It creates instances of various classes, including Foo
, Bar
, Spam
, and others, and checks how they behave when passed different types of arguments, such as integers, floats, strings, and objects.
This Perl code tests the functionality of the overload_simple
module, which provides a simple way to overload operators and functions for custom classes. It creates instances of various classes, including Foo
, Bar
, Spam
, and others, and checks how they behave when passed different types of arguments, such as integers, floats, strings, and objects.
90 is(overload_simple::foo("3.0"), "foo:char *", "foo:char * - string double");
92 is(overload_simple::foo("hello"), "foo:char *", "foo:char * string");
94 is(overload_simple::foo($f), "foo:Foo *", "foo:Foo *");
100 is(overload_simple::blah(3), "blah:double", "blah:double");
102 is(overload_simple::blah("hello"), "blah:char *", "blah:char *");
104 my $s = new overload_simple::Spam();
108 is($s->foo(3.0), "foo:double", "Spam::foo(double)");
110 is($s->foo("hello"), "foo:char *", "Spam::foo:char *");
112 is($s->foo($f), "foo:Foo *", "Spam::foo(Foo *)");
BasicJTableCellReaderTest.java
(http://fest.googlecode.com/svn/)
Java · 252 lines
✨ Summary
This Java code is a test class for the BasicJTableCellReader
class, which reads data from a JTable component. It tests various scenarios, such as rendering different types of components (e.g., JLabel, JComboBox, JCheckBox) and retrieving their values. The tests are run in the Event Dispatch Thread (EDT) to ensure thread safety.
This Java code is a test class for the BasicJTableCellReader
class, which reads data from a JTable component. It tests various scenarios, such as rendering different types of components (e.g., JLabel, JComboBox, JCheckBox) and retrieving their values. The tests are run in the Event Dispatch Thread (EDT) to ensure thread safety.
157 robot.waitForIdle();
158 String value = valueAt(reader, table, 0, 0);
159 assertThat(value).isEqualTo("Hello");
160 }
164 return execute(new GuiQuery<JLabel>() {
165 protected JLabel executeInEDT() {
166 JLabel label = new JLabel("Hello");
167 setCellRendererComponent(table, label);
168 return label;
198 @Test(dataProvider = "booleans", dataProviderClass = BooleanProvider.class)
199 public void shouldReturnIsSelectedIfRendererIsJCheckBox(boolean selected) {
200 setJCheckBoxAsCellRenderer(table, "Hello", selected);
201 robot.waitForIdle();
202 String value = valueAt(reader, table, 0, 0);
java_typemaps_proxy_runme.java
(https://swig.svn.sourceforge.net/svnroot/swig)
Java · 82 lines
✨ Summary
This Java code tests the functionality of the java_typemaps_proxy
library, which is used to interface with C++ code from Java. It creates objects, calls methods, and checks for correct behavior, including exception handling, garbage collection prevention, and template metaprogramming. The test ensures that the pure Java code compiles correctly and behaves as expected when interacting with native C++ code.
This Java code tests the functionality of the java_typemaps_proxy
library, which is used to interface with C++ code from Java. It creates objects, calls methods, and checks for correct behavior, including exception handling, garbage collection prevention, and template metaprogramming. The test ensures that the pure Java code compiles correctly and behaves as expected when interacting with native C++ code.
std_containers.i (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 208 lines
ATWalkerTest.java
(http://ambienttalk.googlecode.com/svn/)
Java · 227 lines
✨ Summary
This Java code is a parser for a programming language, specifically designed to parse and analyze the syntax of the language. It tests various aspects of the language’s grammar, including operator precedence, literal types, annotations, and macro definitions. The test cases cover different scenarios, such as curried invocations, optional arguments, and annotation usage.
This Java code is a parser for a programming language, specifically designed to parse and analyze the syntax of the language. It tests various aspects of the language’s grammar, including operator precedence, literal types, annotations, and macro definitions. The test cases cover different scenarios, such as curried invocations, optional arguments, and annotation usage.
51 parser.program();
52 CommonAST t = (CommonAST)parser.getAST();
53 // Print the resulting tree out in LISP notation
54 System.out.println(t.toStringList());
55 TreeWalkerImpl walker = new TreeWalkerImpl();
182 testWalker("1.05");
183 testWalker("-5.04e-10","-(5.04E-10)");
184 testWalker("\"hello \\tworld\"", "\"hello \tworld\"");
185 testWalker("[a,b,c]");
186 testWalker("[]");
overload_simple_runme.tcl
(https://swig.svn.sourceforge.net/svnroot/swig)
TCL · 167 lines
✨ Summary
The TCL code tests the functionality of two classes, Foo
and Bar
, which are part of a custom class hierarchy. It checks that instances of these classes can be correctly created and returned by the foo
and bar
methods, respectively, with various types of arguments. The tests also verify that the cget -type
method returns the correct type for each instance.
The TCL code tests the functionality of two classes, Foo
and Bar
, which are part of a custom class hierarchy. It checks that instances of these classes can be correctly created and returned by the foo
and bar
methods, respectively, with various types of arguments. The tests also verify that the cget -type
method returns the correct type for each instance.
20 }
22 set x [foo hello]
23 if {$x != "foo:char *"} {
24 puts stderr "foo(char *) test failed"
58 }
60 set x [s foo hello]
61 if {$x != "foo:char *"} {
62 puts stderr "Spam::foo(char *) test failed"
95 }
97 set x [Spam_bar hello]
98 if {$x != "bar:char *"} {
99 puts stderr "Spam::bar(char *) test failed"
configure.ac
(https://code.google.com/p/msysgit/)
m4 · 40 lines
✨ Summary
This is an Autoconf configuration file for a PHP program that uses GNU gettext for internationalization. It checks for the availability of the php
executable, sets up the prefix and locale directories, and configures the Makefiles for the po directory.
This is an Autoconf configuration file for a PHP program that uses GNU gettext for internationalization. It checks for the availability of the php
executable, sets up the prefix and locale directories, and configures the Makefiles for the po directory.
ReleasesClientTests.cs (https://gitlab.com/WoomyNightClub/GitHub-API-.NET) C# · 857 lines
431 var release = await _releaseClient.Create(_context.RepositoryOwner, _context.RepositoryName, releaseWithNoUpdate);
433 var stream = Helper.LoadFixture("hello-world.txt");
435 var newAsset = new ReleaseAssetUpload("hello-world.txt", "text/plain", stream, null);
519 var release = await _releaseClient.Create(_context.RepositoryOwner, _context.RepositoryName, releaseWithNoUpdate);
521 var stream = Helper.LoadFixture("hello-world.txt");
523 var newAsset = new ReleaseAssetUpload("hello-world.txt", "text/plain", stream, null);
544 var stream = Helper.LoadFixture("hello-world.txt");
546 var newAsset = new ReleaseAssetUpload("hello-world.txt", "text/plain", stream, null);
548 var result = await _releaseClient.UploadAsset(release, newAsset);
dialogDefinition.js (https://github.com/mattpclark/drupal7_base.git) JavaScript · 1166 lines
repos_releases_test.go (https://gitlab.com/mayakarya/go-github) Go · 352 lines
216 testHeader(t, r, "Accept", defaultMediaType)
217 w.Header().Set("Content-Type", "application/octet-stream")
218 w.Header().Set("Content-Disposition", "attachment; filename=hello-world.txt")
219 fmt.Fprint(w, "Hello World")
224 t.Errorf("Repositories.DownloadReleaseAsset returned error: %v", err)
225 }
226 want := []byte("Hello World")
227 content, err := ioutil.ReadAll(reader)
228 if err != nil {
dialogDefinition.js (https://github.com/Arsen/travelmozo.git) JavaScript · 1166 lines
README (https://freespeech.svn.sourceforge.net/svnroot/freespeech) Unknown · 5 lines
c_file.py
(http://hadesmem.googlecode.com/svn/trunk/)
Python · 0 lines
✨ Summary
This Python script tests a BoostBuild system by creating a project with two C files (hello.cpp
and a.c
) and an executable that depends on both. The test verifies that the executable is compiled correctly, specifically that the C file a.c
is compiled in C mode to avoid compilation errors.
This Python script tests a BoostBuild system by creating a project with two C files (hello.cpp
and a.c
) and an executable that depends on both. The test verifies that the executable is compiled correctly, specifically that the C file a.c
is compiled in C mode to avoid compilation errors.
ScriptSerializer.scala
(https://bitbucket.org/stepancheg/mysql-diff/)
Scala · 402 lines
✨ Summary
This Scala code defines a class ScriptSerializer
that serializes SQL scripts into a string format. It provides methods to serialize various SQL elements, such as tables, comments, data types, columns, and values. The class is designed to work with a specific context and environment, and it can be used to generate SQL scripts programmatically.
This Scala code defines a class ScriptSerializer
that serializes SQL scripts into a string format. It provides methods to serialize various SQL elements, such as tables, comments, data types, columns, and values. The class is designed to work with a specific context and environment, and it can be used to generate SQL scripts programmatically.
This Scala code defines a class ScriptSerializer
that serializes SQL scripts into a string format. It provides methods to serialize various SQL elements, such as tables, comments, data types, columns, and values. The class is designed to work with a specific context and environment, and it can be used to generate SQL scripts programmatically.
This Scala code defines a class ScriptSerializer
that serializes SQL scripts into a string format. It provides methods to serialize various SQL elements, such as tables, comments, data types, columns, and values. The class is designed to work with a specific context and environment, and it can be used to generate SQL scripts programmatically.
394 scriptSerializer.serializeValue(StringValue("hello")) must_== "'hello'"
395 scriptSerializer.serializeValue(StringValue("'hello world'")) must_== "'''hello world'''"
396 scriptSerializer.serializeValue(NowValue) must_== "NOW()" // XXX: or CURRENT_TIMESTAMP
397 scriptSerializer.serializeValue(DateValue("2009-03-09")) must_== "DATE '2009-03-09'"
JavaFutureTests.java (https://github.com/GunioRobot/akka.git) Java · 261 lines
ObjectSerializationTests.cs (https://gitlab.com/sharadag/Roslyn) C# · 631 lines
261 TestRoundTripArray(new object[] { "hello" });
262 TestRoundTripArray(new object[] { "hello", "world" });
263 TestRoundTripArray(new object[] { "hello", "world", "good" });
264 TestRoundTripArray(new object[] { "hello", "world", "good", "bye" });
265 TestRoundTripArray(new object[] { "hello", 123, 45m, 99.9, 'c' });
266 TestRoundTripArray(new string[] { "hello", null, "world" });
267 }
DisposableResourceTrackerSupplierImplTest.java (https://github.com/jmchilton/TINT.git) Java · 210 lines
140 }
141 replay();
142 final byte[] bytes = "Hello World".getBytes();
143 if(addType.equals(AddType.STREAM)) {
144 tracker.add(new ByteArrayInputStream(bytes));
151 } else if(addType.equals(AddType.COPY)) {
152 final File fileToCopy = File.createTempFile("tpxtest", "");
153 FileUtils.writeStringToFile(fileToCopy, "Hello World");
154 tracker.addCopy(fileToCopy);
155 }
162 expect(factory.apply(tempFile)).andReturn(disposableResource);
163 replay();
164 final byte[] bytes = "Hello World".getBytes();
165 if(addType.equals(AddType.STREAM)) {
166 tracker.add(new ByteArrayInputStream(bytes));
97c4c4fac3c0e0d63e70588bb61c6baf4124aff9Show-Window.ps1 (https://github.com/aliostad/deep-learning-lang-detection.git) Powershell · 226 lines
PullRequestReviewCommentReactionsClientTests.cs (https://gitlab.com/Hexexpeck/GitHub-API-.NET) C# · 228 lines
134 // Creating a commit in master
136 var createdCommitInMaster = await CreateCommit(repoName, "Hello World!", "README.md", "heads/master", "A master commit message");
138 // Creating a branch
143 // Creating a commit in the branch
145 var createdCommitInBranch = await CreateCommit(repoName, "Hello from the fork!", path, branchHead, "A branch commit message");
147 // Creating a pull request
test_input.rb (https://github.com/umarsheikh/gold-notes.git) Ruby · 405 lines
6 it 'should correctly amend the last line of input when no line number specified ' do
7 str_output = StringIO.new
8 redirect_pry_io(InputTester.new("def hello", "puts :bing", "amend-line puts :blah", "show-input", "exit-all"), str_output) do
9 pry
10 end
96 it 'should correctly delete the previous line using the ! for content' do
97 str_output = StringIO.new
98 redirect_pry_io(InputTester.new("def hello", "puts :bing", "puts :bang", "puts :boast", "puts :heart", "amend-line !", "show-input", "exit-all"), str_output) do
99 pry
100 end
273 pry
274 end
275 str_output.string.should =~ /hello\n.*world/
276 end
DisplayCaps.yml (https://gitlab.com/Rockyspade/titanium_mobile) YAML · 176 lines
ruby.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 459 lines
50 </SPAN>
52 <!-- %Q(Hello world) %(Hello world)-->
53 <SPAN_REGEXP HASH_CHAR="%" TYPE="LITERAL1" DELEGATE="doubleQuoteLiteral">
54 <BEGIN>%Q?\(</BEGIN>
62 </SPAN>
64 <!-- %Q{Hello world} %{Hello world} -->
65 <SPAN_REGEXP HASH_CHAR="%" TYPE="LITERAL1" DELEGATE="doubleQuoteLiteral">
66 <BEGIN>%Q?\{</BEGIN>
74 </SPAN>
76 <!-- %Q[Hello world] %[Hello world] -->
77 <SPAN_REGEXP HASH_CHAR="%" TYPE="LITERAL1" DELEGATE="doubleQuoteLiteral">
78 <BEGIN>%Q?\[</BEGIN>
ServletUtilTests.java (https://github.com/webx/citrus.git) Java · 245 lines
67 "http://localhost:8080/myapp/turbine/aaa/bbb");
69 add(data, true, "/hello.world", "/turbine", //
70 "/hello.world/turbine", "http://localhost:8080/myapp", //
71 "/turbine", "http://localhost:8080/myapp/hello.world", //
72 "http://localhost:8080/myapp/hello.world/turbine");
74 add(data, true, " hello.world ", " turbine/ ", //
75 "/hello.world/turbine/", "http://localhost:8080/myapp", //
76 "/turbine/", "http://localhost:8080/myapp/hello.world", //
77 "http://localhost:8080/myapp/hello.world/turbine/");
93 "http://localhost:8080/myapp/turbine");
95 add(data, true, "/hello.world/turbine", null, //
96 "/hello.world/turbine", "http://localhost:8080/myapp", //
PathDataTests.cs (https://github.com/lundbeck/n2cms.git) C# · 328 lines
129 public void Attach_creates_cloned_object()
130 {
131 var path = new PathData { Action = "hej", CurrentItem = item, Ignore = true, IsCacheable = true, IsPubliclyAvailable = true, IsRewritable = true, Path = "/x", StopItem = page, TemplateUrl = "/hello.aspx" };
133 var detached = path.Detach();
153 detached.TemplateUrl = "/world.aspx";
154 detached.QueryParameters["Hello"] = "world";
156 path.Action.ShouldNotBe("hejdå");
184 detached.TemplateUrl = "/world.aspx";
185 detached.QueryParameters["Hello"] = "world";
187 reattached.Action.ShouldNotBe("hejdå");
285 public void Cloned_path_data_has_same_values()
286 {
287 var path = new PathData(page, item) { Action = "hello", Argument = "world", Ignore = true, IsCacheable = false, IsPubliclyAvailable = true, IsRewritable = false, TemplateUrl = "asdf" };
288 var clone = path.Clone();
SQLRunnerCloseTest.as (https://github.com/rusin/air-sqlite.git) ActionScript · 424 lines
173 _sqlRunner = new SQLRunner(_dbFile);
175 var stmt1:QueuedStatement = new QueuedStatement(ADD_ROW_SQL, {colString:"Hello", colInt:7});
176 var stmt2:QueuedStatement = new QueuedStatement(ADD_ROW_SQL, {colString:"World", colInt:17});
219 _sqlRunner = new SQLRunner(_dbFile);
221 var stmt1:QueuedStatement = new QueuedStatement(ADD_ROW_SQL, {colString:"Hello", colInt:7});
222 var stmt2:QueuedStatement = new QueuedStatement(ADD_ROW_SQL, {colString:"World", colInt:17});
296 _sqlRunner = new SQLRunner(_dbFile);
298 var stmt1:QueuedStatement = new QueuedStatement(ADD_ROW_SQL, {colString:"Hello", colInt:7});
299 var stmt2:QueuedStatement = new QueuedStatement(ADD_ROW_SQL, {colString:"World", colInt:17});
test_gui.py (https://gitlab.com/rbax81/DAT) Python · 301 lines
printf-stdarg.c (https://bitbucket.org/minux/freertos.git) C · 289 lines
JavaFutureTests.java (https://github.com/andreum/akka.git) Java · 257 lines
test-irregex-mosh.ss
(git://github.com/higepon/mosh.git)
Scheme · 329 lines
✨ Summary
This Scheme code tests and implements a regular expression library, irregex
. It checks various aspects of the library, including pattern matching, submatch extraction, replacement, and folding (aggregation) of matches. The tests cover different scenarios, such as simple patterns, email addresses, and more complex cases like chunked folding. The output indicates whether each test passes or fails, providing a snapshot of the library’s functionality.
This Scheme code tests and implements a regular expression library, irregex
. It checks various aspects of the library, including pattern matching, submatch extraction, replacement, and folding (aggregation) of matches. The tests cover different scenarios, such as simple patterns, email addresses, and more complex cases like chunked folding. The output indicates whether each test passes or fails, providing a snapshot of the library’s functionality.
actions_spec.js (https://gitlab.com/artofhuman/gitlab-ce) JavaScript · 512 lines
source.rs (https://github.com/Logicalshift/flowbetween.git) Rust · 394 lines
245 let mut encoded = String::new();
247 encoded.write_str("Hello, world");
248 assert!(encoded.chars().next_string() == "Hello, world".to_string());
336 encoded.write_usize(1234);
337 encoded.write_small_u64(1234);
338 encoded.write_str("Hello, world");
339 encoded.write_u32(1234);
340 encoded.write_i32(-1234);
350 encoded.write_usize(1234);
351 encoded.write_small_u64(1234);
352 encoded.write_str("Hello, world");
353 encoded.write_u32(1234);
354 encoded.write_i32(-1234);
366 assert!(src.next_usize() == 1234);
367 assert!(src.next_small_u64() == 1234);
368 assert!(src.next_string() == "Hello, world".to_string());
369 assert!(src.next_u32() == 1234);
370 assert!(src.next_i32() == -1234);
Makefile (https://github.com/deldelda/Box2d-Mods.git) Makefile · 200 lines
147 # Convenience name for target.
148 HelloWorld: HelloWorld/CMakeFiles/HelloWorld.dir/rule
149 .PHONY : HelloWorld
152 HelloWorld/fast:
153 cd /Users/Andy/Documents/Box2D_v2.1.2/Box2D/Build && $(MAKE) -f HelloWorld/CMakeFiles/HelloWorld.dir/build.make HelloWorld/CMakeFiles/HelloWorld.dir/build
154 .PHONY : HelloWorld/fast
157 HelloWorld.o:
158 cd /Users/Andy/Documents/Box2D_v2.1.2/Box2D/Build && $(MAKE) -f HelloWorld/CMakeFiles/HelloWorld.dir/build.make HelloWorld/CMakeFiles/HelloWorld.dir/HelloWorld.o
159 .PHONY : HelloWorld.o
162 HelloWorld.i:
163 cd /Users/Andy/Documents/Box2D_v2.1.2/Box2D/Build && $(MAKE) -f HelloWorld/CMakeFiles/HelloWorld.dir/build.make HelloWorld/CMakeFiles/HelloWorld.dir/HelloWorld.i
164 .PHONY : HelloWorld.i
167 HelloWorld.s:
168 cd /Users/Andy/Documents/Box2D_v2.1.2/Box2D/Build && $(MAKE) -f HelloWorld/CMakeFiles/HelloWorld.dir/build.make HelloWorld/CMakeFiles/HelloWorld.dir/HelloWorld.s
169 .PHONY : HelloWorld.s
normal-template.js (https://github.com/haxd/normal-template.git) JavaScript · 250 lines
35 {title: "Hello3", content: "World3"}
36 ]};
37 assert.equal(t(data), "Hello1: World1 Hello2: World2 Hello3: World3 ");
39 t = compile("test {:r articles}{=title}: {=content} {/:r}");
108 {title: "Hello3", content: "World3"}
109 ]};
110 assert.equal(t(data), "<li>Hello1: World1</li><li>Hello2: World2</li><li>Hello3: World3</li>");
112 var data = {};
238 {title: "Hello3", content: "World3"}
239 ]};
240 assert.equal(t(data), "Hello1: World1,Hello2: World2,Hello3: World3");
242 t = compile("test {:r articles ','}{=title}: {=content} {/:r}");
PortalWebTestSuite.java (https://github.com/monicali/liferay-portal.git) Java · 135 lines
32 import com.liferay.portalweb.portlet.hellovelocity.HelloVelocityTestPlan;
33 import com.liferay.portalweb.portlet.helloworld.HelloWorldTestPlan;
34 import com.liferay.portalweb.portlet.iframe.IFrameTestPlan;
35 import com.liferay.portalweb.portlet.imagegallery.ImageGalleryTestPlan;
94 testSuite.addTest(HelloVelocityTestPlan.suite());
95 testSuite.addTest(HelloWorldTestPlan.suite());
96 testSuite.addTest(IFrameTestPlan.suite());
97 testSuite.addTest(ImageGalleryTestPlan.suite());
debugger.markdown (https://gitlab.com/MichelZuniga/node) Markdown · 170 lines
29 setTimeout(function () {
30 debugger;
31 console.log("world");
32 }, 1000);
33 console.log("hello");
43 3 debugger;
44 debug> cont
45 < hello
46 break in /home/indutny/Code/git/indutny/myscript.js:3
47 1 x = 5;
48 2 setTimeout(function () {
49 3 debugger;
50 4 console.log("world");
51 5 }, 1000);
52 debug> next
usage.md (https://bitbucket.org/larryg/powerhut.git) Markdown · 158 lines
repl.md (https://github.com/nibblebot/cluster.git) Markdown · 165 lines
PatchTests.cs (https://github.com/louthy/language-ext.git) C# · 588 lines
24 public void EmptyPatchAppendPatchIsPatch()
25 {
26 var docA = List("Hello", "World");
27 var docB = List("Hello", "World", "Again");
36 public void PatchCommutes()
37 {
38 var docA = List("Hello", "World");
39 var docB = List("Hello", "World", "Again");
285 public void ApplyDeleteAtMidDiff()
286 {
287 var docA = List("Hello", "Again", "World");
288 var docB = List("Hello", "World");
399 var docA = List("It's", "Hello", "Again", "World", "Cheers");
400 var docB = List("Yes", "Hello", "My", "World", "Of Joy");
402 var patch = diff<EqString, string>(docA, docB);
ob-picolisp-more-tests.org (https://github.com/tj64/ob-picolisp.git) Org · 583 lines
154 (html 0 "Hello" "@lib.css" NIL
155 (<h1> NIL "Hello World!")
156 (<br> "This is some text.")
157 (ht:Prin "And this is a number: " (+ 1 2 3)) )
338 <script type="text/javascript" src="http://://usr/lib/picolisp/lib/form.js"></script>
339 </head>
340 <body><h1>Hello World!</h1>
341 This is some text.<br/>
342 And this is a number: 6</body></html>
388 (html 0 "Hello" "@lib.css" NIL
389 (<h1> NIL "Hello World!")
390 (<br> "This is some text.")
391 (ht:Prin "And this is a number: " (+ 1 2 3)) )
553 (html 0 "Hello" "@lib.css" NIL
554 (<h1> NIL "Hello World!")
555 (<br> "This is some text.")
556 (ht:Prin "And this is a number: " (+ 1 2 3)) )
render_spec.rb (https://github.com/Sharagoz/engine.git) Ruby · 209 lines
39 before(:each) do
40 @controller.instance_variable_set(:@page, @page)
41 @controller.send(:prepare_and_set_response, 'Hello world !')
42 end
48 it 'sets the content type to the one specified by the page' do
49 @page.response_type = 'application/json'
50 @controller.send(:prepare_and_set_response, 'Hello world !')
51 @controller.response.headers['Content-Type'].should == 'application/json; charset=utf-8'
52 end
58 it 'displays the output' do
59 @controller.output.should == 'Hello world !'
60 end
ViewPortletSiteMapTest.java (https://github.com/monicali/liferay-portal.git) Java · 123 lines
54 assertEquals(RuntimeVariables.replace("Sign In"),
55 selenium.getText("xPath=(//h1[@class='portlet-title'])[1]"));
56 assertEquals(RuntimeVariables.replace("Hello World"),
57 selenium.getText("xPath=(//h1[@class='portlet-title'])[2]"));
58 assertTrue(selenium.isVisible("xPath=(//section[@class='portlet'])[1]"));
contextswitch.h (https://github.com/zeroality2/pokemon-online.git) C Header · 181 lines
index.html (https://github.com/tnajdek/gamejs.git) HTML · 199 lines
browser_dbg_propertyview-05.js (https://github.com/Anachid/mozilla-central.git) JavaScript · 99 lines
DynamicProcessTest.java (https://github.com/mariofusco/jbpm.git) Java · 143 lines
46 @Test
47 public void testDynamicProcess() throws Exception {
48 RuleFlowProcessFactory factory = RuleFlowProcessFactory.createProcess("org.jbpm.HelloWorld");
49 factory
50 // Header
51 .name("HelloWorldProcess")
52 .version("1.0")
53 .packageName("org.jbpm")
97 final ProcessInstanceImpl processInstance = (ProcessInstanceImpl)
98 ksession.startProcess("org.jbpm.HelloWorld");
100 HumanTaskNode node = new HumanTaskNode();
open_graph.js (https://gitlab.com/nycancccat/hexo) JavaScript · 368 lines
36 it('title - page', function() {
37 var ctx = {
38 page: {title: 'Hello world'},
39 config: hexo.config,
40 is_post: isPost
48 it('title - options', function() {
49 var result = openGraph.call({
50 page: {title: 'Hello world'},
51 config: hexo.config,
52 is_post: isPost
332 config: hexo.config,
333 is_post: isPost
334 }, {twitter_site: 'Hello'});
336 result.should.contain(meta({name: 'twitter:site', content: 'Hello'}));
tester.fs (https://github.com/martintrojer/scheme-fsharp.git) F# · 271 lines
219 [<Test>]
220 member tc.testFunction() =
221 let env, _ = "(define (hello) (display \"hello world\"))" |> parse |> List.head |> (eval testEnv)
222 let _ = "(hello)" |> parse |> List.head |> (eval env)
260 [<Test>]
261 member tc.testDisplay() =
262 let _ = "(display \"hello world\")" |> parse |> List.head |> (eval testEnv)
263 let _ = "(display (+ 1 2))" |> parse |> List.head |> (eval testEnv)
index.rst (https://gitlab.com/ricardo.hernandez/salt) ReStructuredText · 125 lines
xhello.el (https://github.com/emacsmirror/ohio-archive.git) Emacs Lisp · 122 lines
1 ;;; hello --- hello world X demo/testbed
3 ;; Copyright (C) 1996, 1997, 1998 Eric M. Ludlam
31 ;;; Commentary:
32 ;;
33 ;; Example HELLO WORLD Emacs X program
35 (require 'xlib)
91 (defun Xhello-expose (win params)
92 ;; checkdoc-params: (params)
93 "Expose the hello window WIN."
94 (let ((dpy (X-window-get-display win)))
95 (XDrawLine dpy win Xhello-gc-2 5 5 100 50)
98 (XDrawRectangle dpy win Xhello-gc-1 2 38 38 15)
99 (XDrawString dpy win Xhello-gc-1 5 50 "HELLO!")
100 (XDrawSegments dpy win Xhello-gc-2 '(100 0 50 10 100 100 50 90))
line_index.rs (https://github.com/mun-lang/runtime.git) Rust · 266 lines
code-block-exports-no-color.org (https://github.com/wallyqs/org-ruby.git) Org · 466 lines
96 #+begin_src emacs-lisp
97 (message "hello world")
98 #+end_src
158 Hello world!
159 Hello world!
160 Hello world!
362 Hello world!
363 Hello world!
364 #+end_example
408 #+name: hello_ruby_exports_both_long
409 #+begin_src ruby :exports both
410 hello = <<HELLO
411 The following is a text
412 that will contain at least 10 lines or more
kernel.c (https://gitlab.com/bluehole/myos-32bit) C · 108 lines
34 SetTextColour(BRIGHTBLUE);
35 clear();
36 kprintf("\t****************Hello Tiny OS-32****************\n");
37 kprintf("\t*****************Keep Patience******************\n");
38 kprintf("\t================================================\n");
100 // box(100,100,400,400);
101 // init_windows();
102 // errmsgbox("Test Error$","Hello World this is not enough$");
103 // displaymessages(100,100,"Hello World$",4);
active_admin.rb.erb (https://github.com/macfanatic/active_admin.git) Ruby HTML · 209 lines
inline_editing_content.feature (https://github.com/markn86/moodle.git) Gherkin Specification · 192 lines
45 And I switch to "h5p-player" class iframe
46 And I switch to "h5p-iframe" class iframe
47 And I should see "Hello world!"
48 And I switch to the main frame
49 # Modify the H5P content using the edit button (which opens the H5P editor).
57 And I switch to "h5p-iframe" class iframe
58 # Check the H5P content has changed.
59 And I should not see "Hello world!"
60 And I should see "It's a Wonderful Life!"
61 And I switch to the main frame
67 And I switch to "h5p-player" class iframe
68 And I switch to "h5p-iframe" class iframe
69 And I should not see "Hello world!"
70 And I should see "It's a Wonderful Life!"
71 And I switch to the main frame
ap4r_client.rb (https://github.com/futonaka/ap4r.git) Ruby · 132 lines
14 # Examples: The part of calling next asynchronous logics in a controller in the HelloWorld Sample.
15 #
16 # req = WorldRequest.new([:world_id => 1, :message => "World"})
17 # ap4r.async_to({:controller => 'async_world', :action => 'execute'},
77 #
78 # ap4r.async_to({:controller => 'next_controller', :action => 'next_action'}) do
79 # body :world, World.find(1)
80 # body :message, "World"
120 #
121 # ap4r.transaction do
122 # req = WorldRequest.new([:world_id => 1, :message => "World"})
123 # ap4r.async_to({:controller => 'async_world', :action => 'execute'},
124 # {:world_id => 1, :message => "World"})
125 #
126 # render :action => 'response'
test-generate-application.ss (https://github.com/jsjohnst/moby-scheme.git) Scheme · 166 lines
46 (define test-pinholes (make-test "pinholes.ss"))
47 (define test-rectangles (make-test "rectangles.ss"))
48 (define test-hello-world (make-test "hello-world.ss"))
49 (define test-approx-equal (make-test "approx-equal.ss"))
50 (define test-struct-question (make-test "struct-question.ss"))
69 (define test-local (make-test "local.ss"))
71 (define test-gui-world-hello-world (make-test "gui-world-hello-world.ss"))
72 (define test-gui-world-drop-down (make-test "gui-world-drop-down.ss"))
75 (define test-gui-world-checkbox (make-test "gui-world-checkbox.ss"))
76 (define test-gui-world-location (make-test "gui-world-location.ss"))
78 (define test-simple-bootstrap-game (make-test "simple-bootstrap-game.ss"))
120 #;test-parse-google-maps-places
121 #;test-grocery-shopper
122 #;test-gui-world-hello-world
123 #;test-gui-world-drop-down
SqlResultsTest.java
(http://mycila.googlecode.com/svn/)
Java · 83 lines
✨ Summary
This Java code tests a database connection using H2, a lightweight relational database. It creates three test databases and runs various queries to verify data insertion and retrieval functionality, including testing byte arrays, Java objects, blobs, clobs, and arrays as column values. The output is printed to the console for verification purposes.
This Java code tests a database connection using H2, a lightweight relational database. It creates three test databases and runs various queries to verify data insertion and retrieval functionality, including testing byte arrays, Java objects, blobs, clobs, and arrays as column values. The output is printed to the console for verification purposes.
63 @Test
64 public void test_insert_complex() throws Exception {
65 db3.prepare("INSERT INTO TESTTYPES(c13) VALUES(?)").setBytes(1, "hello".getBytes()).commit(); // byte arrays
66 db3.prepare("INSERT INTO TESTTYPES(c14) VALUES(?)").setObject(1, UUID.randomUUID()).commit(); // java object seralized
67 db3.prepare("INSERT INTO TESTTYPES(c18) VALUES(?)").setBlob(1, new SerialBlob("hello".getBytes())).commit(); // blob
68 db3.prepare("INSERT INTO TESTTYPES(c19) VALUES(?)").setClob(1, new SerialClob("hello".toCharArray())).commit(); // clob
69 db3.prepare("INSERT INTO TESTTYPES(column21) VALUES(?)").setObjects(1, new Object[]{1, "h", 'R'}).commit(); // array
70 System.out.println(db3.prepare("SELECT * FROM TESTTYPES").query());
Menubar.File.js (https://gitlab.com/rs15010411/three.js) JavaScript · 335 lines
test-openpty.c (https://gitlab.com/changlimin/gnulib) C · 111 lines
17 /* Written by Simon Josefsson <simon@josefsson.org>, 2009
18 and Bruno Haible <bruno@clisp.org>, 2010. */
20 #include <config.h>
74 /* Write into the master side. */
75 {
76 static const char input[] = "Hello worst\177\177ld!\n";
78 if (write (master, input, strlen (input)) < (int) strlen (input))
87 char buf[100];
88 int res = read (slave, buf, sizeof (buf));
89 static const char expected[] = "Hello world!\n";
91 if (res < 0)
tempo-tests.el (https://gitlab.com/RobertCochran/emacs) Emacs Lisp · 228 lines
85 (cl-letf (((symbol-function 'read-string) (lambda (&rest _) "world!")))
86 (tempo-insert-template 'tempo-template-test nil))
87 (should (equal (buffer-string) "hello world! world!")))))
89 (ert-deftest tempo-&-element-test ()
182 "Testing template with nil elements."
183 (with-temp-buffer
184 (tempo-define-template "test" '("Hello," nil " World!"))
185 (tempo-insert-template 'tempo-template-test nil)
186 (should (equal (buffer-string) "Hello, World!"))))
212 "Testing expansion of a template with a tag."
213 (with-temp-buffer
214 (tempo-define-template "test" '("Hello, World!") "hello")
215 (insert "hello")
220 "Testing expansion of a template with a tag, with a partial match."
221 (with-temp-buffer
222 (tempo-define-template "test" '("Hello, World!") "hello")
223 (insert "hel")
224 (tempo-complete-tag)
pages_spec.rb (https://github.com/metaminded/contentr.git) Ruby · 73 lines
8 content_page = create(:page, name: 'info', parent: a.default_page,
9 slug: 'info', published: true, page_type: create(:page_type))
10 paragraph = create(:paragraph, page: content_page, body: 'hello world!', visible: true)
11 paragraph.publish!
12 visit "/en/articles/#{a.id}/info"
13 expect(content_page.paragraphs.count).to be 1
14 expect(page).to have_content('hello world!')
15 end
19 a = create(:article)
20 visit article_path(id: a)
21 expect(page).to have_no_content('Hello World!')
22 click_link 'body'
23 select 'Standard', from: 'choose-paragraph-type'
BridgeTest.as (https://github.com/scho/melomel.git) ActionScript · 217 lines
159 {
160 // Create proxy for object
161 var object:Object = {testFunc:function(name:String):String{return "Hello " + name}};
162 var proxy:ObjectProxy = bridge.objectProxyManager.addItem(object);
169 // Check send for correct data and send data to bridge
170 socket.addEventListener("send", function(event:DataEvent):void{
171 Assert.assertEquals('<return value="Hello World" dataType="string"/>', event.data);
172 }, false, 100);
173 socket.receive('<invoke object="' + proxy.id + '" method="testFunc"><args><arg value="World" dataType="string"/></args></invoke>');
AbstractSessionTest.java (https://github.com/derickbailey/qedserver.git) Java · 175 lines
guidialog.h (https://bitbucket.org/thunderk/stormwar.git) C Header · 188 lines
tag.rb (https://github.com/royratcliffe/rails.git) Ruby · 135 lines
81 # # Get funky: assert that there is a "div", with an "ul" ancestor
82 # # and an "li" parent (with "class" = "enum"), and containing a
83 # # "span" descendant that contains text matching /hello world/
84 # assert_tag tag: "div",
85 # ancestor: { tag: "ul" },
87 # attributes: { class: "enum" } },
88 # descendant: { tag: "span",
89 # child: /hello world/ }
90 #
91 # <b>Please note</b>: +assert_tag+ and +assert_no_tag+ only work
ActorDSLSpec.scala (https://github.com/amir343/akka.git) Scala · 235 lines
28 "function as implicit sender" in {
29 implicit val i = inbox()
30 echo ! "hello"
31 i.receive() must be("hello")
37 val res = Future.sequence(Seq(
38 Future { i.receive() } recover { case x ⇒ x },
39 Future { Thread.sleep(100); i.select() { case "world" ⇒ 1 } } recover { case x ⇒ x },
40 Future { Thread.sleep(200); i.select() { case "hello" ⇒ 2 } } recover { case x ⇒ x }))
42 res.isCompleted must be(false)
43 i.receiver ! 42
44 i.receiver ! "hello"
45 i.receiver ! "world"
49 "support selective receives" in {
50 val i = inbox()
51 i.receiver ! "hello"
52 i.receiver ! "world"
README.md (https://github.com/christianblais/tableize.git) Markdown · 223 lines
38 <tbody>
39 <tr class="post_1">
40 <td>Hello World!</td>
41 <td>Christian Blais</td>
42 </tr>
132 `Tableize` also accepts hashes instead of regular collections. Use it the same way.
134 collection = [{:title => "Hello World", "author" => "Christian Blais"}]
136 table_for Post, collection do |t|
218 <tbody>
219 <tr class="post_1">
220 <td class="title_td">Hello World!</td>
221 </tr>
222 </tbody>
README.md (https://github.com/Neohapsis/httpShell.git) Markdown · 62 lines
25 This application encodes traffic into the words specified in this dictionary files. There are seperate dictionaries used for data sent by the client and by the server. This option specifies a dictionary file to be used by both. This file is parsed, treating each line as a seperate dictionary element. It is advisable that different dictionaries be used by both client and server. It is necessary that both the client and server have the same dictionary options specified. This works as follows: A base is defined as the number of different strings in the dictionary (the number of lines). The strings to be sent by client or server are converted into arrays of integers of the base derived from the dictionary (the number of dictionary elements). These integers then correspond to the elements in the dictionary which are concatenated together. The following is an example:
27 Dictionary: \[hello,world\]
28 Input String: 'A' = 0x41 = 0b1000001
29 Input Base: 256
30 Output base: 2 (2 elements in the dictionary)
31 Output Integer Array (base 2): 1,0,0,0,0,0,1
32 Output String: 'world hello hello hello hello hello world'
34 ###-g --clientdict \<filename\>
37 Path to the dictionary to use for server communication. See above for a better description of what this does. This defaults to \[hello,world\]
38 ###-i --clienttemplate \<filename\>
39 Path to the template file to use for client communication. This only needs to be set on the client. In addition to encoding transmission data into dictionaries, the output is placed into a template for further obfuscation. In the template one should specify where to put the data. The string '##$$##' is replaced with the specified data. If the output string is encoded into the dictionary as 'world hello hello hello hello hello world' and the template is 'foo ##$$## bar' then the overall output will be 'foo world hello hello hello hello hello world bar'. This, for example, allows you to embed data that has been encoded to look like HTML into a larger HTML template to provide context and legitimacy.
40 ###-j --servertemplate \<filename\>
41 Path to the template file to use for server communication. This only needs to be set on the server. In addition to encoding transmission data into dictionaries, the output is placed into a template for further obfuscation. In the template one should specify where to put the data. The string '##$$##' is replaced with the specified data. If the output string is encoded into the dictionary as 'world hello hello hello hello hello world' and the template is 'foo ##$$## bar' then the overall output will be 'foo world hello hello hello hello hello world bar'. This, for example, allows you to embed data that has been encoded to look like HTML into a larger HTML template to provide context and legitimacy.
browser_webconsole_bug_613280_jsterm_copy.js (https://github.com/diogogmt/mozilla-central.git) JavaScript · 79 lines
ScriptCalls.cpp (https://github.com/xiaofeng2009/TC2.git) C++ · 127 lines
26 #include "Platform/Define.h"
27 #include "ScriptCalls.h"
28 #include "World.h"
29 #include "Config/ConfigEnv.h"
79 ||!(testScript->ScriptsFree =(scriptCallScriptsFree )TRINITY_GET_PROC_ADDR(testScript->hScriptsLib,"ScriptsFree" ))
80 ||!(testScript->ScriptsVersion =(scriptCallScriptsVersion )TRINITY_GET_PROC_ADDR(testScript->hScriptsLib,"ScriptsVersion" ))
81 ||!(testScript->GossipHello =(scriptCallGossipHello )TRINITY_GET_PROC_ADDR(testScript->hScriptsLib,"GossipHello" ))
82 ||!(testScript->GOChooseReward =(scriptCallGOChooseReward )TRINITY_GET_PROC_ADDR(testScript->hScriptsLib,"GOChooseReward" ))
83 ||!(testScript->QuestAccept =(scriptCallQuestAccept )TRINITY_GET_PROC_ADDR(testScript->hScriptsLib,"QuestAccept" ))
91 ||!(testScript->GODialogStatus =(scriptCallGODialogStatus )TRINITY_GET_PROC_ADDR(testScript->hScriptsLib,"GODialogStatus" ))
92 ||!(testScript->ChooseReward =(scriptCallChooseReward )TRINITY_GET_PROC_ADDR(testScript->hScriptsLib,"ChooseReward" ))
93 ||!(testScript->ItemHello =(scriptCallItemHello )TRINITY_GET_PROC_ADDR(testScript->hScriptsLib,"ItemHello" ))
94 ||!(testScript->GOHello =(scriptCallGOHello )TRINITY_GET_PROC_ADDR(testScript->hScriptsLib,"GOHello" ))
121 Script->ScriptsInit(sConfig.GetFilename().c_str());
123 sWorld.SetScriptsVersion(Script->ScriptsVersion());
125 return true;
node_test.go (https://gitlab.com/CORP-RESELLER/dashboard) Go · 246 lines
CallbackValidatorTest.php (https://github.com/deviantintegral/symfony.git) PHP · 256 lines
IFramePortletInstanceConfiguration.java (https://github.com/danielreuther/liferay-portal.git) Java · 116 lines
2015-03-03-html-inline-semantics.md (https://gitlab.com/jnettome/marksheet) Markdown · 91 lines
test-cases.scm (git://github.com/tonyg/newmoon.git) Scheme · 443 lines
143 (rt-eval '(defmacro test-case-define-outer (v1 v2)
144 `(begin
145 (define ,v1 "hello")
146 (define ,v2 "world"))))
147 (rt-eval '(test-case-define-outer xx yy))
148 (rt-expect "helloworld"
149 '(string-append xx yy))))
155 `(begin
156 (define ,v1 "goodbye")
157 (define ,v2 "world"))))
158 (rt-expect "goodbyeworld"
tools.tex (https://gitlab.com/essere.lab.public/qualitas.class-corpus) LaTeX · 134 lines
test_list_summary.py (https://gitlab.com/msapiro/postorius) Python · 196 lines
en.yml (https://github.com/lucasmpavelski/PharmaCC.git) YAML · 249 lines
project01.cpp (https://gitlab.com/cmarch314/PythonProjects) C++ · 286 lines
01pharSimple.php (https://gitlab.com/techniconline/kmc) PHP · 112 lines
test_attributes.rb (https://github.com/jmazzi/attrtastic.git) Ruby · 421 lines
LocalizeWCWebContentTemplateWCDTest.java (https://github.com/lululiferay/liferay-portal.git) Java · 217 lines
71 selenium.waitForPageToLoad("30000");
72 assertEquals(RuntimeVariables.replace(
73 "Hello World Localized Article"),
74 selenium.getText("//h1[@class='header-title']"));
75 assertEquals(RuntimeVariables.replace(
121 assertEquals(RuntimeVariables.replace("Status: Draft"),
122 selenium.getText("//span[@class='workflow-status']"));
123 assertEquals("Hello World Page Name",
124 selenium.getValue("//input[@id='page-name']"));
125 assertEquals("Hello World Page Description",
204 RuntimeVariables.replace("Publish"));
205 selenium.waitForPageToLoad("30000");
206 assertEquals(RuntimeVariables.replace("Hello World Page Name"),
207 selenium.getText("//td[@class='page-name']"));
208 assertEquals(RuntimeVariables.replace(
message_test.go (https://gitlab.com/akomba/ether-bot-wallet) Go · 158 lines
28 // Tests whether a message can be wrapped without any identity or encryption.
29 func TestMessageSimpleWrap(t *testing.T) {
30 payload := []byte("hello world")
32 msg := NewMessage(payload)
54 t.Fatalf("failed to create crypto key: %v", err)
55 }
56 payload := []byte("hello world")
58 msg := NewMessage(payload)
87 t.Fatalf("failed to create recipient crypto key: %v", err)
88 }
89 payload := []byte("hello world")
91 msg := NewMessage(payload)
opengl.py (https://github.com/titusz/freetype-py.git) Python · 122 lines
interactiveshell.py
(git://github.com/ipython/ipython.git)
Python · 669 lines
✨ Summary
This is a class implementation of an interactive shell for IPython, a Python interpreter. It provides a terminal-based interface for users to input and execute Python code. The class handles various features such as parsing user input, executing code, displaying output, and managing the shell’s state. It also includes magic functions that provide additional functionality, such as pasting code from the clipboard or clearing the screen.
This is a class implementation of an interactive shell for IPython, a Python interpreter. It provides a terminal-based interface for users to input and execute Python code. The class handles various features such as parsing user input, executing code, displaying output, and managing the shell’s state. It also includes magic functions that provide additional functionality, such as pasting code from the clipboard or clearing the screen.
COPYING (https://freespeech.svn.sourceforge.net/svnroot/freespeech) Unknown · 375 lines
faq-items1.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 687 lines
349 abbreviations and other programming support for over 60 programming
350 languages and file types, including C, C++, C#,
351 Cobol, HTML, Java, Javascript, Lisp, Pascal, Perl, PHP, Python,
352 TCL, Visual Basic and XML. The full list can be found on the
353 <ulink url="http://www.jedit.org/index.php?page=features">jEdit web
577 <para>
578 There is almost always someone from the developer team
579 signed on the channel. Just say hello and describe your problem.
580 </para></answer>
581 </qandaentry>
Android.mk (https://bitbucket.org/Tsiannian/cocos2d-x.git) Makefile · 27 lines
GppFunctionalTest.groovy (https://bitbucket.org/nbargnesi/idea.git) Groovy · 616 lines
StyleOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 453 lines
✨ Summary
This Java code is a graphical user interface (GUI) for editing syntax highlighting settings. It allows users to select font styles, colors, and sizes for text editors. The GUI consists of checkboxes and buttons that enable users to customize their text editor’s appearance. When the “OK” button is clicked, the selected settings are applied to the text editor.
This Java code is a graphical user interface (GUI) for editing syntax highlighting settings. It allows users to select font styles, colors, and sizes for text editors. The GUI consists of checkboxes and buttons that enable users to customize their text editor’s appearance. When the “OK” button is clicked, the selected settings are applied to the text editor.
overload_extend.scm (https://swig.svn.sourceforge.net/svnroot/swig) Lisp · 13 lines
template_default_arg_runme.java
(https://swig.svn.sourceforge.net/svnroot/swig)
Java · 157 lines
✨ Summary
This Java code tests a C++ template library generated by SWIG, which allows for interoperability between C++ and Java. It creates instances of various classes with different templates and calls methods on them to verify that the correct results are returned. The test cases cover various scenarios, including default arguments, overloading, and type conversions.
This Java code tests a C++ template library generated by SWIG, which allows for interoperability between C++ and Java. It creates instances of various classes with different templates and calls methods on them to verify that the correct results are returned. The test cases cover various scenarios, including default arguments, overloading, and type conversions.
16 public static void main(String argv[]) {
17 {
18 Hello_int helloInt = new Hello_int();
19 helloInt.foo(Hello_int.Hi.hi);
50 }
51 {
52 X_hello_unsigned x = new X_hello_unsigned();
53 x = new X_hello_unsigned(20.0);
54 x = new X_hello_unsigned(20.0, new Hello_int());
55 }
56 {
57 Y_hello_unsigned y = new Y_hello_unsigned();
58 y.meth(20.0, new Hello_int());
std_string.i (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 153 lines
main.xml (http://softkeyboard.googlecode.com/svn/) XML · 13 lines
example.i (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 28 lines
runme.pl
(https://swig.svn.sourceforge.net/svnroot/swig)
Perl · 74 lines
✨ Summary
The Perl code demonstrates the interaction between a Perl module and its C implementation. It sets variables, prints their values from both languages, updates a structure variable, and attempts to modify read-only variables using eval. The output shows the values printed from both languages and the errors encountered when trying to modify read-only variables.
The Perl code demonstrates the interaction between a Perl module and its C implementation. It sets variables, prints their values from both languages, updates a structure variable, and attempts to modify read-only variables using eval. The output shows the values printed from both languages and the errors encountered when trying to modify read-only variables.
primitives_tests.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
This C++ code tests the functionality of the Boost.Phoenix library, specifically its argument handling and value extraction capabilities. It creates various variables and constants, then uses Phoenix functions to extract values from them, testing for correctness and compile-time errors. The test results are reported using BOOST_TEST macros.
This C++ code tests the functionality of the Boost.Phoenix library, specifically its argument handling and value extraction capabilities. It creates various variables and constants, then uses Phoenix functions to extract values from them, testing for correctness and compile-time errors. The test results are reported using BOOST_TEST macros.
node-app.js (https://github.com/apalsapure/pubnub-api.git) JavaScript · 35 lines
id.po (https://code.google.com/p/msysgit/) Unknown · 27 lines
1 # translation of hello-csharp-forms-0.15-pre5.po to Indonesian
2 # Copyright (C) 2006 Yoyodyne, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: hello-csharp-forms-0.15-pre5\n"
9 "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
10 "PO-Revision-Date: 2006-09-27 20:19+0700\n"
19 #: hello.cs:29
20 msgid "Hello, world!"
21 msgstr "Hello, world!"
23 #: hello.cs:36
24 #, csharp-format
25 msgid "This program is running as process number {0}."
zh_HK.po (https://code.google.com/p/msysgit/) Unknown · 25 lines
1 # Chinese (Hong Kong) translation of hello-csharp-forms.
2 # Copyright (C) 2006 Yoyodyne, Inc.
3 # Abel Cheung <abelcheung@gmail.com>, 2006.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: hello-csharp-forms 0.15-pre5\n"
8 "Report-Msgid-Bugs-To: bug-gnu-gettext@gnu.org\n"
9 "PO-Revision-Date: 2006-07-05 15:40+0800\n"
17 #: hello.cs:29
18 msgid "Hello, world!"
19 msgstr "???"
21 #: hello.cs:36
22 #, csharp-format
23 msgid "This program is running as process number {0}."
cpp_namespace.scm
(https://swig.svn.sourceforge.net/svnroot/swig)
Lisp · 43 lines
✨ Summary
This Lisp code tests various functions and variables to ensure they return expected values, throwing an error if any assertion fails. It creates instances of different test classes (Test
, Test2
, Test3
, Test4
, Test5
) and calls their methods with specific arguments, verifying the method names are correct. If all assertions pass, it exits with a success code (0).
This Lisp code tests various functions and variables to ensure they return expected values, throwing an error if any assertion fails. It creates instances of different test classes (Test
, Test2
, Test3
, Test4
, Test5
) and calls their methods with specific arguments, verifying the method names are correct. If all assertions pass, it exits with a success code (0).