"""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()

@@ -540,19 +540,20 @@
 text': '
-one
+acos
 ',%0A     
@@ -576,26 +576,30 @@
 : %7B'
-one
+aco
 s', '
-onenormest
+acosd', 'acosh
 '%7D,%0A

Fix tests with Octave 5.