Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
pfackeldey committed Jan 16, 2025
1 parent af405db commit cbb01a5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_3372_akRecord_setitem.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward/blob/main/LICENSE
# ruff: noqa: E402

from __future__ import annotations

import awkward as ak


def test():
rec = ak.Record({"a": 1})
assert isinstance(rec.layout, ak.record.Record)

rec["b"] = 2
assert isinstance(rec.layout, ak.record.Record)

0 comments on commit cbb01a5

Please sign in to comment.