docstr: ...Test that view slicing works as expected on Array
docstr_tok: ["...","Test","that","view","slicing","works","as","expected","on","Array"]
code: def test_slice_view1d(self):
      """...Test that view slicing works as expected on Array"""
      for test_array in self._test_arrays("ArrayDouble"):
          original_array = test_array.copy()
          start = 1
          end = 2
  
          full_view = original_array[:]
          start_slice_view = full_view[start:]
          end_slice_view = full_view[:-end]
          middle_slice_view = full_view[start:-end]
          start_start_slice_view = start_slice_view[start:]
          start_end_slice_view = end_slice_view[start:]
          end_start_slice_view = start_slice_view[:-end]
          end_end_slice_view = end_slice_view[:-end]
  
          # Check that every time the right view has been extracted
          expected = [
              full_view,
              start_slice_view,
              end_slice_view,
              middle_slice_view,
              start_start_slice_view,
              start_end_slice_view,
              end_start_slice_view,
              end_end_slice_view,
          ]
  
          results = test.test_slice_view1d(test_array, start, end)
          for e, r in zip(expected, results):
              np.testing.assert_equal(r, e)
  
          # Check that the right part of the array has been set to 0
          output_array = original_array
          output_array[start:-end] = 0
          np.testing.assert_equal(test_array, output_array)
  
imports: import unittest
  import numpy
  from numpy.linalg import norm
  from tick.array_test.build import array_test
  from scipy.sparse import csr_matrix
  import itertools
label_desc: Use image node_id 21 for calling the Test obj's underlying member method code with example usage: obj.test_slice_view1d() without return types