Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying MSVS 2019 #278

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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 .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
build: false

os: Visual Studio 2015
os: Visual Studio 2019

platform:
- x64
Expand Down
38 changes: 0 additions & 38 deletions .azure-pipelines/azure-pipelines-linux-clang.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .azure-pipelines/azure-pipelines-linux-gcc.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .azure-pipelines/azure-pipelines-osx.yml

This file was deleted.

68 changes: 0 additions & 68 deletions .azure-pipelines/unix-build.yml

This file was deleted.

8 changes: 0 additions & 8 deletions azure-pipelines.yml

This file was deleted.

6 changes: 6 additions & 0 deletions test_python/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ using complex_t = std::complex<double>;

// Examples

auto argmin(xt::pyarray<int>& m)
{
return xt::argmin(m);
}

double example1(xt::pyarray<double>& m)
{
return m(0);
Expand Down Expand Up @@ -291,6 +296,7 @@ PYBIND11_MODULE(xtensor_python_test, m)

m.doc() = "Test module for xtensor python bindings";

m.def("argmin", argmin);
m.def("example1", example1);
m.def("example2", example2);
m.def("example3_xarray", example3_xarray);
Expand Down
3 changes: 3 additions & 0 deletions test_python/test_pyarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ class XtensorTest(TestCase):
def test_rm(self):
xt.test_rm(np.array([10], dtype=int))

def test_argmin(self):
self.assertEqual(1, xt.argmin([7, 5, 6]))

def test_example1(self):
self.assertEqual(4, xt.example1([4, 5, 6]))

Expand Down