"""Example use of jupyter_kernel_test, with tests for IPython."""

import sys
import unittest
import jupyter_kernel_test as jkt


class OctaveKernelTests(jkt.KernelTests):
    kernel_name = "octave"

    language_name = "octave"

    code_hello_world = "disp('hello, world')"

    code_display_data = [
        {'code': '%plot -f png\nplot([1,2,3])', 'mime': 'image/png'},
        {'code': '%plot -f svg\nplot([1,2,3])', 'mime': 'image/svg+xml'}
    ] if sys.platform == 'darwin' else []

    completion_samples = [
        {
            'text': 'one',
            'matches': {'ones', 'onenormest'},
        },
    ]

    code_page_something = "ones?"


if __name__ == '__main__':
    unittest.main()

"""Example use of jupyter_kernel_test, with tests for IPython."""

import sys
import unittest
import jupyter_kernel_test as jkt


class OctaveKernelTests(jkt.KernelTests):
    kernel_name = "octave"

    language_name = "octave"

    code_hello_world = "disp('hello, world')"

    code_display_data = [
        {'code': '%plot -f png\nplot([1,2,3])', 'mime': 'image/png'},
        {'code': '%plot -f svg\nplot([1,2,3])', 'mime': 'image/svg+xml'}
    ] if sys.platform == 'darwin' else []

    completion_samples = [
        {
            'text': 'acos',
            'matches': {'acos', 'acosd', 'acosh'},
        },
    ]

    code_page_something = "ones?"


if __name__ == '__main__':
    unittest.main()

Fix tests with Octave 5.
Fix tests with Octave 5.

  """Example use of jupyter_kernel_test, with tests for IPython."""
  
  import sys
  import unittest
  import jupyter_kernel_test as jkt
  
  
  class OctaveKernelTests(jkt.KernelTests):
      kernel_name = "octave"
  
      language_name = "octave"
  
      code_hello_world = "disp('hello, world')"
  
      code_display_data = [
          {'code': '%plot -f png\nplot([1,2,3])', 'mime': 'image/png'},
          {'code': '%plot -f svg\nplot([1,2,3])', 'mime': 'image/svg+xml'}
      ] if sys.platform == 'darwin' else []
  
      completion_samples = [
          {
-             'text': 'one',
+             'text': 'acos',
-             'matches': {'ones', 'onenormest'},
+             'matches': {'acos', 'acosd', 'acosh'},
          },
      ]
  
      code_page_something = "ones?"
  
  
  if __name__ == '__main__':
      unittest.main()
  
Fix tests with Octave 5.
## Code Before:
"""Example use of jupyter_kernel_test, with tests for IPython."""

import sys
import unittest
import jupyter_kernel_test as jkt


class OctaveKernelTests(jkt.KernelTests):
    kernel_name = "octave"

    language_name = "octave"

    code_hello_world = "disp('hello, world')"

    code_display_data = [
        {'code': '%plot -f png\nplot([1,2,3])', 'mime': 'image/png'},
        {'code': '%plot -f svg\nplot([1,2,3])', 'mime': 'image/svg+xml'}
    ] if sys.platform == 'darwin' else []

    completion_samples = [
        {
            'text': 'one',
            'matches': {'ones', 'onenormest'},
        },
    ]

    code_page_something = "ones?"


if __name__ == '__main__':
    unittest.main()

## Instruction:
Fix tests with Octave 5.
## Code After:
"""Example use of jupyter_kernel_test, with tests for IPython."""

import sys
import unittest
import jupyter_kernel_test as jkt


class OctaveKernelTests(jkt.KernelTests):
    kernel_name = "octave"

    language_name = "octave"

    code_hello_world = "disp('hello, world')"

    code_display_data = [
        {'code': '%plot -f png\nplot([1,2,3])', 'mime': 'image/png'},
        {'code': '%plot -f svg\nplot([1,2,3])', 'mime': 'image/svg+xml'}
    ] if sys.platform == 'darwin' else []

    completion_samples = [
        {
            'text': 'acos',
            'matches': {'acos', 'acosd', 'acosh'},
        },
    ]

    code_page_something = "ones?"


if __name__ == '__main__':
    unittest.main()
