We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b65e34 commit 2017fb9Copy full SHA for 2017fb9
Tests/VarPythTest.pas
@@ -36,6 +36,8 @@ TTestVarPyth = class(TObject)
36
procedure TestDates;
37
[Test]
38
procedure TestObjects;
39
+ [Test]
40
+ procedure Keywords;
41
end;
42
43
implementation
@@ -46,6 +48,14 @@ implementation
46
48
Classes,
47
49
VarPyth;
50
51
+procedure TTestVarPyth.Keywords;
52
+var
53
+ D: Variant;
54
+begin
55
+ D := BuiltinModule.dict(a := 1, b := 2);
56
+ Assert.AreEqual<Integer>(D.GetItem('a'), 1);
57
+end;
58
+
59
procedure TTestVarPyth.SetupFixture;
60
begin
61
PythonEngine := TPythonEngine.Create(nil);
0 commit comments