From 05b89bdcf3f1045142d0f11b69a2c9791d0b88e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Schmelzer?= Date: Sun, 10 Mar 2019 21:42:32 +0100 Subject: [PATCH] add indentation tests for object diagrams --- test/plantuml-indentation-object-test.el | 34 ++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 test/plantuml-indentation-object-test.el diff --git a/test/plantuml-indentation-object-test.el b/test/plantuml-indentation-object-test.el new file mode 100644 index 0000000..b87daf8 --- /dev/null +++ b/test/plantuml-indentation-object-test.el @@ -0,0 +1,34 @@ +;;; plantuml-indentation-object-test.el --- PlantUML Mode indentation tests -*- lexical-binding: t; -*- + +;; Author: René Schmelzer +;; Maintainer: Carlo Sciolla (skuro) +;; URL: https://github.com/skuro/plantuml-mode + +;;; Commentary: + +;; Test indentation for object diagrams. + +;;; Code: + +(ert-deftest plantuml-test-indentation/object-diagram () + "Test correct indentation of plantuml object diagram elements. +These code examples are taken from www.plantuml.com +Note: object diagrams use many elements defined for class diagrams." + (plantuml-test-indent-block + + " +object user { +name = \"Dummy\" +id = 123 +} +" + " +object user { + name = \"Dummy\" + id = 123 +} +")) + +(provide 'plantuml-indentation-object-test) + +;;; plantuml-indentation-object-test.el ends here