Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 8f168b2

Browse files
authored
Test assign with scalar broadcast (#70)
1 parent f34f5ea commit 8f168b2

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
git remote add origin https://github.com/llvm/llvm-project || exit 1
8585
git fetch origin ${{ env.LLVM_SHA }} || exit 1
8686
git reset --hard FETCH_HEAD || exit 1
87-
# FIXME if [ -d "$GITHUB_WORKSPACE/third_party/imex/build_tools/patches" ]; then git apply $GITHUB_WORKSPACE/third_party/imex/build_tools/patches/*.patch; fi
87+
if [ -d "$GITHUB_WORKSPACE/third_party/imex/build_tools/patches" ]; then git apply $GITHUB_WORKSPACE/third_party/imex/build_tools/patches/*.patch; fi
8888
cd -
8989
mkdir -p build/llvm-mlir || exit 1
9090
cd build/llvm-mlir || exit 1

imex_version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3067b8fb5a239b46a4a563c200c7fb8abb066643
1+
b36606fb8697e46adc6f834ffacef06613abd829

test/test_setget.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import sharpy as sp
2+
import numpy
23
from utils import runAndCompare
34
import pytest
45

@@ -155,3 +156,10 @@ def doit(aapi):
155156
return b
156157

157158
assert runAndCompare(doit)
159+
160+
def test_assign_bcast_scalar(self):
161+
a = sp.zeros((16, 16), sp.int64)
162+
b = 2
163+
a[:, :] = b
164+
a2 = sp.to_numpy(a)
165+
assert numpy.all(a2 == 2)

0 commit comments

Comments
 (0)