pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / emilua-plugins / qt5 / basic_test.lua
blob5e37771a1ca57d62b7c075c5cc1d0d6b0b1ea5fd
1 local qt = require 'qt5'
2 local qml = qt.load_qml(byte_span.append([[
3 import QtQml 2.0
4 QtObject {
5 function foobar(a: int, b: int): int {
6 return a + b
9 ]]))
10 assert(qml.object('foobar(int,int)', 1, 2), 3)
12 print("done 👍")