Skip to content

Commit

Permalink
Fix remaining test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
barche committed Jun 18, 2024
1 parent a4031a3 commit 609b056
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,9 @@ jobs:
- os: macos-14
arch: aarch64
version: '1'
exclude:
- os: ubuntu-latest
version: '1.6'
prefix: xvfb-run
env:
LIBGL_ALWAYS_SOFTWARE: 1
GALLIUM_DRIVER: softpipe
version: 1.6
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
Expand Down
4 changes: 2 additions & 2 deletions test/containers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ let h = QML.QHash{Int32,QML.QByteArray}()
@test isempty(h)
end

let numbers = [1,2,3,4], model = JuliaItemModel(numbers)
let numbers = Int32[1,2,3,4], model = JuliaItemModel(numbers)
modeldata = QML.get_julia_data(model)
@test QML.rowcount(modeldata) == 4
@test QML.colcount(modeldata) == 1
@test QML.value(QML.data(modeldata, QML.DisplayRole,3,1)) == "3"
@test QML.setdata!(model, QVariant(5), QML.EditRole, 3, 1)
@test QML.setdata!(model, QVariant(Int32(5)), QML.EditRole, 3, 1)
@test QML.value(QML.data(modeldata, QML.DisplayRole,3,1)) == "5"
@test QML.value(QML.headerdata(modeldata, 2, QML.Vertical, QML.DisplayRole)) == 2
@test_logs (:warn,"Setting header data is not supported in this model") QML.setheaderdata!(model, 1, QML.Vertical, QML.EditRole, "One")
Expand Down

0 comments on commit 609b056

Please sign in to comment.