-
Notifications
You must be signed in to change notification settings - Fork 3
/
default_fixture_text.toml
905 lines (746 loc) · 20.5 KB
/
default_fixture_text.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
agda = """
{-# OPTIONS --safe #-}
module Test where
open import Example
check : {A : Set} {a b c : A} → a ≡ b → b ≡ c → a ≡ c
check = _⇆_
"""
bf = """
// You can use the Mocha (JavaScript) framework for testing BF.
// TODO: replace with your own tests (TDD), these are just here to demonstrate usage.
describe("Your Test Suite", function () {
it("should return Hello World!", function () {
// use runBF() to run your program, you can pass it arguments
Test.assertEquals(runBF(), "Hello World!");
});
});
"""
c = """
// TODO: Replace examples and use TDD by writing your own tests. The code provided here is just a how-to example.
#include <criterion/criterion.h>
// replace with the actual method being tested
int foo(int,int);
Test(the_multiply_function, should_pass_all_the_tests_provided) {
cr_assert_eq(foo(1, 1), 1);
}
"""
cfml = """
// https://testbox.ortusbooks.com/
component extends="CodewarsBaseSpec" {
// Submitted solution is written to Solution.cfc
function beforeAll(){
SUT = createObject( 'Solution' );
}
function run(){
describe( "Example", function(){
it( "returns sum", function(){
expect( SUT.add(1, 1) ).toBe( 2 );
});
});
}
}
"""
clojure = """
;; TODO: TDD using clojure.test framework
"""
cobol = """
123456*8901
* See https://github.com/codewars/cobol-test
identification division.
program-id. tests.
data division.
working-storage section.
01 arg1 pic s9(5).
01 arg2 pic s9(5).
01 arg1-str pic -9(5).
01 arg2-str pic -9(5).
01 result pic s9(6).
01 expected pic s9(6).
procedure division.
* Fixed Tests
testsuite 'Fixed Tests'.
testcase 'Test 1'.
move 3 to arg1
move -5 to arg2
call 'solution' using
by content arg1 arg2
by reference result
expect result to be -2.0.
* Random Tests
testsuite "Random Tests".
perform set-random-seed
perform 5 times
compute arg1 = function random() * 199999 - 99999
compute arg2 = function random() * 199999 - 99999
move arg1 to arg1-str
move arg2 to arg2-str
testcase 'Testing ' arg1-str ' + ' arg2-str.
add arg1 to arg2 giving expected
call 'solution' using
by content arg1 arg2
by reference result
expect result to be expected.
end-perform
end tests.
end program tests.
"""
coffeescript = """
# Create your own tests here. These are some of the methods available:
# Test.expect(boolean, [optional] message)
# Test.assertEquals(actual, expected, [optional] message)
# Test.assertSimilar(actual, expected, [optional] message)
# Test.assertNotEquals(actual, expected, [optional] message)
"""
commonlisp = """
(in-package #:cl-user)
(defpackage #:challenge/tests/solution
(:use #:cl
#:rove
#:challenge/solution))
(in-package #:challenge/tests/solution)
; Solution can be imported from `challenge/solution`.
; Optional preloaded package (`challenge/preloaded`) can be provided by kata authors.
; Write tests with Rove (https://github.com/fukamachi/rove).
; The use of `testing` is recommended for better output on Codewars.
(deftest test-solution
(testing "add"
(ok (= (add 1 1) 2))))
"""
coq = """
Require Solution.
Require Import Preloaded.
From CW Require Import Loader.
CWGroup "Solution.example".
CWTest "should have the correct type".
CWAssert Solution.example : (forall (A : Type) (a b c : A),
a = b -> b = c -> a = c).
CWTest "should be closed under the global context".
CWAssert Solution.example Assumes.
CWEndGroup.
"""
cpp = """
// TODO: Replace examples and use TDD by writing your own tests
Describe(any_group_name_you_want)
{
It(should_do_something)
{
Assert::That("some value", Equals("another value"));
}
};
"""
crystal = """
# Spec example:
# TODO: replace with your own tests (TDD), these are just how-to examples.
describe "Solution" do
it "should test something" do
foo.should eq "bar"
end
end
"""
csharp = """
namespace Solution {
using NUnit.Framework;
using System;
// TODO: Replace examples and use TDD by writing your own tests
[TestFixture]
public class SolutionTest
{
[Test]
public void MyTest()
{
Assert.AreEqual("expected", "actual");
}
}
}
"""
d = """
module solution_test;
import solution : add;
// fluent asserts is supported
version(unittest) import fluent.asserts;
// Name the unittest block
@("add returns the sum")
unittest {
add(1, 1).should.equal(2).because("1 + 1 == 2");
assert(add(1, 1) == 2);
}
"""
dart = """
// See https://pub.dartlang.org/packages/test
import "package:test/test.dart";
import "package:solution/solution.dart";
void main() {
test("add", () {
expect(add(1, 1), equals(2));
});
}
"""
elixir = """
# TODO: Replace examples and use TDD by writing your own tests
defmodule TestSolution do
use ExUnit.Case
test "some test description" do
assert "actual" == "expected"
end
end
"""
elm = """
module ExampleTest exposing (..)
-- Codewars uses [elm-test](https://package.elm-lang.org/packages/elm-explorations/test/1.1.0).
-- Replace this with your own tests.
import Expect exposing (Expectation)
import Test exposing (..)
import Example
suite : Test
suite =
describe "Example"
[ test "add" <|
\\_ -> (Example.add 1 1) |> Expect.equal 2
]
"""
erlang = """
% Test using EUnit (http://erlang.org/doc/apps/eunit/chapter.html)
% TODO: replace with your own tests (TDD), these are just here to demonstrate usage.
-module(example_tests).
-include_lib("eunit/include/eunit.hrl").
example_test_() ->
{"Two Oldest Ages",
[{"returns [45, 87] for [1,5,87,45,8,8]", ?_assertMatch([45, 87], [45])}]}.
"""
factor = """
! Use vocabulary tools.testest for testing.
! See https://github.com/codewars/testest
USING: example tools.testest ;
IN: example.tests
: run-tests ( -- )
"Example" describe#{
"test case" it#{
<{ 1 1 example -> 1 }>
}#
}#
;
MAIN: run-tests
"""
forth = """
\\ ttester.fs with extension for Codewars
\\ See https://github.com/codewars/ttester-codewars
s" example" describe#{
s" returns sum" it#{
<{ 1 1 example -> 2 }>
}#
}#
"""
fortran = """
! CW2 example
program TestCases
use CW2
use Solution
implicit none
call describe("add")
call it("adds integers")
call assertEquals(2, add(1, 1))
call endContext()
call endContext()
end program
"""
fsharp = """
module ExampleTests
open ExampleSolution
// NUnit is used to test F# 6.0.
open NUnit.Framework
[<Test>]
let TestAdd() =
Assert.AreEqual(2, add 1 1)
[<TestFixture>]
type FixedTests() =
[<Test>]
member this.TestOne() =
Assert.AreEqual(1, add 0 1)
"""
go = """
// TODO: replace with your own tests (TDD). An example to get you started is included below.
// Ginkgo BDD Testing Framework <http://onsi.github.io/ginkgo/>
// Gomega Matcher Library <http://onsi.github.io/gomega/>
package kata_test
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
. "codewarrior/kata"
)
var _ = Describe("Test Example", func() {
// It("should test that the solution returns the correct value", func() {
// Expect(Solution(1)).To(Equal(2))
// })
})
"""
groovy = """
// You can test using JUnit or Spock. JUnit is shown below
// TODO: replace this example test with your own, this is just here to demonstrate usage.
import org.junit.Test
class TestExample {
@Test
void returnsProduct() {
assert Example.multiply(2, 2) == 4
}
}
"""
haskell = """
module ExampleSpec where
-- Tests can be written using Hspec http://hspec.github.io/
-- Replace this with your own tests.
import Test.Hspec
import Example
-- `spec` of type `Spec` must exist
spec :: Spec
spec = do
describe "add" $ do
it "adds Nums" $ do
(add 1 1) `shouldBe` (2 :: Integer)
"""
haxe = """
// Tests are written using https://github.com/haxe-utest/utest
import utest.Assert;
import Solution;
class SolutionTest extends utest.Test {
function testExample() {
Assert.equals(2, Example.add(1, 1));
}
}
"""
idris = """
module ExampleSpec
-- Tests can be written using [specdris](https://github.com/pheymann/specdris)
-- `specSuite : IO ()` is required.
import Specdris.Spec
import Example
%access export
%default total
specSuite : IO ()
specSuite = spec $ do
describe "add" $ do
it "adds two natural numbers" $ do
(1 `add` 1) `shouldBe` 2
"""
java = """
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
// TODO: Replace examples and use TDD by writing your own tests
class SolutionTest {
@Test
void testSomething() {
// assertEquals("expected", "actual");
}
}
"""
javascript = """
// Since Node 10, we're using Mocha.
// You can use `chai` for assertions.
const chai = require("chai");
const assert = chai.assert;
// Uncomment the following line to disable truncating failure messages for deep equals, do:
// chai.config.truncateThreshold = 0;
// Since Node 12, we no longer include assertions from our deprecated custom test framework by default.
// Uncomment the following to use the old assertions:
// const Test = require("@codewars/test-compat");
describe("Solution", function() {
it("should test for something", function() {
// Test.assertEquals(1 + 1, 2);
// assert.strictEqual(1 + 1, 2);
});
});
"""
julia = """
# FactCheck example:
# TODO: replace with your own tests (TDD), these are just how-to examples.
using FactCheck
facts("Testing basics") do
@fact 1 --> 1
@fact 2*2 --> 4
@fact uppercase("foo") --> "FOO"
@fact 2*[1,2,3] --> [2,4,6]
end
"""
kotlin = """
// You can test using JUnit or KotlinTest. JUnit is shown below
// TODO: replace this example test with your own, this is just here to demonstrate usage.
// TODO: replace with whatever your package is called
package solution
import kotlin.test.assertEquals
import org.junit.Test
class TestExample {
@Test
fun multiply() {
assertEquals(4, multiply(2, 2))
}
}
"""
lambdacalc = """
import { assert, LC, getSolution } from "./lc-test.js";
LC.configure({ purity: "Let", numEncoding: "Church", verbosity: "Concise" });
const { multiply } = LC.compile(getSolution());
describe("Multiply", () => {
it("example tests", () => {
assert.numEql( multiply(7)(7), 49 );
assert.numEql( multiply(11)(11), 121 );
});
});
"""
lean = """
import Preloaded Solution
theorem submission : SUBMISSION := immediate
#print axioms submission
"""
lua = """
-- TODO: Replace examples and use TDD by writing your own tests
local solution = require 'solution'
describe("solution", function()
it("test for something", function()
assert.are.same("expected", solution.foo())
end)
end)
"""
nasm = """
; this is just an example. See https://docs.codewars.com/languages/nasm
#include <criterion/criterion.h>
int add(int, int);
Test(add_test, should_add_integers) {
cr_assert_eq(add(1, 1), 2);
}
"""
objc = """
// TODO: replace with your own tests, these are just how-to examples.
// Codewars uses UnitKit unit testing framework.
// See https://docs.codewars.com/languages/objc/unitkit
@implementation TestSuite
- (void) testsIfReturnsActual
{
UKStringsEqual(@"expected", Solution(@"value"));
UKStringsNotEqual(@"expected", Solution(@"value"));
}
@end
"""
ocaml = """
(* TODO: replace with your own tests, these are just how-to examples.
* OUnit Spec example:
* See https://ocaml.org/p/ounit2/2.2.3/doc/index.html for documentation
* Available packages: https://docs.codewars.com/languages/ocaml
*)
open Solution
open OUnit
let suite = [
"Suite Name" >:::
[
"Test Name" >:: (fun _ ->
assert_equal "Expected" "Actual" ~printer:Fun.id ~msg:"test"
)
]
]
"""
pascal = """
unit ExampleTests;
// Tests are written with [FPTest](https://github.com/graemeg/fptest).
{$mode objfpc}{$H+}
interface
uses
TestFramework,
Example;
type TExampleTests = class(TTestCase)
published
procedure TestAdd;
end;
procedure RegisterTests;
implementation
procedure RegisterTests;
begin
TestFramework.RegisterTest(TExampleTests.Suite);
end;
procedure TExampleTests.TestAdd;
begin
CheckEquals(2, Add(1, 1));
end;
end.
"""
perl = """
# You can use `Test::More` to write tests.
# https://metacpan.org/pod/Test::More
# use strict;
# use warnings;
# use Test::More;
# `Test::Most` can be used to load commonly needed features.
# See https://metacpan.org/pod/Test::Most
use Test::Most;
# The name of the solution package is inferred from the code.
use Solution;
subtest "examples" => sub {
is(Solution::add(1, 1), 2);
};
done_testing();
"""
php = """
<?php
use PHPUnit\\Framework\\TestCase;
// PHPUnit Test Examples:
// TODO: Replace examples and use TDD by writing your own tests
class ExampleTest extends TestCase
{
// test function names should start with "test"
public function testThatSomethingShouldHappen() {
$this->assertEquals("a", "a");
$this->assertEquals([0], [0]);
}
}
"""
powershell = """
# You can test with Pester (https://github.com/pester/Pester)
# TODO: replace with your own tests (TDD), these are just here to demonstrate usage.
BeforeAll {
. $PSCommandPath.Replace('.Tests.ps1', '.ps1')
}
Describe "Add-Numbers" {
It "adds positive numbers" {
Add-Numbers 1 1 | Should -Be 2
}
}
"""
prolog = """
% plunit can be used to test solution
:- begin_tests(example).
:- include(example).
test(example_test) :-
X is 1+1,
assertion(X == 2).
:- end_tests(example).
"""
purescript = """
module ExampleSpec where
-- Tests can be written using spec https://purescript-spec.github.io/purescript-spec
-- Replace this with your own tests.
import Prelude
import Test.Spec (Spec, describe, it)
import Test.Spec.Assertions (shouldEqual)
import Example (add')
spec :: Spec Unit
spec =
describe "Example" do
describe "add'" do
it "returns sum" do
(add' 1 1) `shouldEqual` 2
"""
python = """
import codewars_test as test
# TODO Write tests
import solution # or from solution import example
# test.assert_equals(actual, expected, [optional] message)
@test.describe("Example")
def test_group():
@test.it("test case")
def test_case():
test.assert_equals(1 + 1, 2)
"""
r = """
# You can test with testthat (http://r-pkgs.had.co.nz/tests.html#test-structure)
# TODO: replace with your own tests (TDD), these are just here to demonstrate usage.
test_that("example", {
expect_equal(actual, expected)
})
"""
racket = """
#lang racket
(require "solution.rkt")
(require rackunit
codewars/rackunit)
;; codewars/rackunit provides `run-tests`.
;; See RackUnit documentation. https://docs.racket-lang.org/rackunit
(run-tests
(test-suite
"example"
(test-case
"add"
(check-equal? (add 1 1) 2))))
"""
raku = """
use v6;
# You can write tests using the standard Test module.
# https://docs.raku.org/language/testing
use Test;
# The name of the solution module is inferred from the code.
use Solution;
subtest "examples", {
is(add(1, 1), 2);
}
done-testing;
"""
reason = """
/* You can write tests using Jest.
* See https://github.com/glennsl/bs-jest
* Replace with your own tests.
*/
open Jest;
describe("add", () => {
open Expect;
test("1 + 1", () =>
expect(Solution.add(1, 1)) |> toBe(2));
});
"""
riscv = """
// Tests for RISC-V are written in C with Cgreen.
// See <https://cgreen-devs.github.io/cgreen/cgreen-guide-en.html>.
#include <cgreen/cgreen.h>
#include <stdlib.h>
#include <time.h>
#include <stddef.h>
int add(int, int);
// `Describe`, `BeforeEach`, and `AfterEach` are required.
Describe(Example);
BeforeEach(Example) {}
AfterEach(Example) {}
Ensure(Example, works_for_fixed_tests) {
assert_that(add(1, 1), is_equal_to(2));
}
Ensure(Example, works_for_100_random_tests) {
srand(time(NULL));
for (int i = 0; i < 100; ++i) {
int a = rand() % 100;
int b = rand() % 100;
int expected = a + b;
assert_equal_with_message(add(a, b), expected, "add(%d, %d) == %d", a, b, expected);
}
}
// `solution_tests` to create a test suite is required.
TestSuite *solution_tests() {
TestSuite *suite = create_test_suite();
add_test_with_context(suite, Example, works_for_fixed_tests);
add_test_with_context(suite, Example, works_for_100_random_tests);
return suite;
}
"""
ruby = """
# From Ruby 3.0, RSpec is used under the hood.
# See https://rspec.info/
# Defaults to the global `describe` for backwards compatibility, but `RSpec.desribe` works as well.
describe "Example" do
it "should return the sum" do
expect(add(1, 1)).to eq(2)
# The following is still supported, but new tests should now use them.
# Test.assert_equals(add(1, 1), 2)
end
end
"""
rust = """
// Add your tests here.
// See https://doc.rust-lang.org/stable/rust-by-example/testing/unit_testing.html
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_add() {
assert_eq!(add(1, 2), 3);
}
}
"""
scala = """
// You can test using ScalaTest (http://www.scalatest.org/).
import org.scalatest.flatspec.AnyFlatSpec
import org.scalatest.matchers.should.Matchers
// TODO: replace this example test with your own, this is just here to demonstrate usage.
// See http://www.scalatest.org/ to learn more.
class ExampleSpec extends AnyFlatSpec with Matchers {
"multiply(2, 2)" should "return 4" in {
Example.multiply(2, 2) should be (4)
}
}
"""
shell = """
# TODO: replace with your own tests (TDD). An example to get you started is included below.
# run the solution and store its result
# output = run_shell args: ['my_arg']
# describe "Solution" do
# it "should return the argument passed in" do
# expect(output).to include('my_arg')
# end
# end
"""
solidity = """
// See https://hardhat.org/tutorial/testing-contracts
const { expect } = require("chai");
describe("Token contract", function () {
it("Deployment should assign the total supply of tokens to the owner", async function () {
const [owner] = await ethers.getSigners();
const Token = await ethers.getContractFactory("Token");
const token = await Token.deploy();
const ownerBalance = await token.balanceOf(owner.address);
expect(await token.totalSupply()).to.equal(ownerBalance);
});
});
"""
sql = """
# TODO: replace with your own tests (TDD), these are just how-to examples to get you started.
# Ruby/Rspec/Sequel Example:
# While the code section is pure SQL, for testing we use Ruby & Rspec.
# Sequel (https://github.com/jeremyevans/sequel) is used to setup the database and run queries.
# The connection is already made for you, use DB to access.
DB.create_table :items do
primary_key :id
String :name
Float :price
end
items = DB[:items] # Create a dataset
# Populate the table
items.insert(:name => 'a', :price => 10)
items.insert(:name => 'b', :price => 35)
items.insert(:name => 'c', :price => 20)
# calling run_sql will print the results and return them so that you can test data within them.
# if you want to test different sets of data, then its best to move this code into its own top level describe
# block. If you are only testing one set though, its better to set the results before you enter a describe block
# so that the results are presented at the top of the output.
results = run_sql
describe :items do
it "should return 3 items" do
expect(results.count).to eq 3
end
end
# Other tips about using run_sql:
# The SQL/code section supports multiple statements, seperated of course by a ";".
# When multiple SELECT statements are issued:
# run_sql will return an array of arrays, unless only one SELECT statement returned results
# INSERT and UPDATE results will not be included in the list
# SELECT statements that return no results will not be included in the list
"""
swift = """
import XCTest
// XCTest Spec Example:
// TODO: replace with your own tests (TDD), these are just how-to examples to get you started
class SolutionTest: XCTestCase {
static var allTests = [
("Test Example", testExample),
]
func testExample() {
let actual = 1
XCTAssertEqual(actual, 1)
}
}
XCTMain([
testCase(SolutionTest.allTests)
])
"""
typescript = """
// See https://www.chaijs.com for how to use Chai.
import { assert } from "chai";
import { example } from "./solution";
// TODO Add your tests here
describe("example", function() {
it("test", function() {
// assert.strictEqual(1 + 1, 2);
});
});
"""
vb = """
Imports NUnit.Framework
<TestFixture>
Public Class AdderTest
<Test>
Public Sub ShouldAddInts()
Assert.AreEqual(2, Adder.Add(1, 1))
End Sub
End Class
"""