Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ require (
github.com/go-kramdown/kramdown v0.2.0
github.com/go-liquid/liquid v0.1.1
github.com/go-mustache/mustache v0.1.0
github.com/go-ndarray/ndarray v0.11.0
github.com/go-ndarray/ndarray v0.12.0
github.com/go-nokogiri/nokogiri v0.1.0
github.com/go-rouge/rouge v0.3.0
github.com/go-ruby-aasm/aasm v0.0.0-20260717061120-cec0976ec205
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
github.com/go-mustache/mustache v0.1.0 h1:WvnpPlBn8/v1dwVzp7XvzF5dDC1agYMzPyCl1MdPVzY=
github.com/go-mustache/mustache v0.1.0/go.mod h1:jXns/eIBKrnaFbE8BXX44VrTLp92732R0oXBiZC+v/Q=
github.com/go-ndarray/ndarray v0.11.0 h1:HMW7rAI25wSNNgVxOFTYCz48vW/wIBRT8IN17DNZHQ8=
github.com/go-ndarray/ndarray v0.11.0/go.mod h1:ZcgNCBVLXt1FxeZjQWI5Z+k0SSWAT0/wR8slfat/gRA=
github.com/go-ndarray/ndarray v0.12.0 h1:4xfl9ZQo1m0UXopo06KypELg1wUYgQb5kdKaJPZAZus=
github.com/go-ndarray/ndarray v0.12.0/go.mod h1:ZcgNCBVLXt1FxeZjQWI5Z+k0SSWAT0/wR8slfat/gRA=
github.com/go-nokogiri/nokogiri v0.1.0 h1:3Q3BewGHK16Bt34ggJeyf9xeIMJyA3dmfbIxARPgR9U=
github.com/go-nokogiri/nokogiri v0.1.0/go.mod h1:zjghooYIK8Xfg+fL4/OUhROslx51xGsM3JKtB2TI0tg=
github.com/go-opentype/fonts v0.10.0 h1:9f7ik795SlBEJjz6iqBE/ZV2PaTauAj537MMWw9t4OQ=
Expand Down
4 changes: 3 additions & 1 deletion internal/vm/ndarray_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,9 @@ func TestNDArrayContract(t *testing.T) {
{m + `p m`, "array([[0., 1., 2.],\n [3., 4., 5.]])\n"}, // repr(np.arange(6.).reshape(2, 3))
{m + `puts m.to_s`, "array([[0., 1., 2.],\n [3., 4., 5.]])\n"},
{`p NDArray.arange(3)`, "array([0., 1., 2.])\n"},
{`p NDArray.zeros(0)`, "array([])\n"},
// NumPy always prints the dtype of an empty array (arrayprint.py,
// _array_repr_implementation: dtype= when arr.size == 0).
{`p NDArray.zeros(0)`, "array([], dtype=float64)\n"},
{m + `p [m.shape, m.ndim, m.size]`, "[[2, 3], 2, 6]\n"},
}
for _, c := range cases {
Expand Down
Loading