lemon.horse - Lemon Drop's Lair

Test - A test post for regression testing

Published:
Tags: test

This post is for testing various styling features posts offer and to ensure that existing styling does not break with future changes.

This is some test paragraph formatting. A long paragraph like this is mostly to test the functionality of wrapping in the main website container to ensure that things fit well.

Here is yet another paragraph. This time we are testing styling such as bold, italic, strong, emphasis and strikethrough. Next we can try definitions for terms which may be confusing when describing the somewhat recondite field of computer graphics, using abbreviations such as BSSRDF to discuss topics. Finally here is a link to nowhere in particular.

This is a paragraph with some inline code snippets in it as well as some inline samples of output. These can be used to cite variable names, single lines of code such as int a{ 5 }; // This is a line of code., or single lines of output from programs.

This is some blockquote content.

And here is a citation.
  • Here's an unordered list item
  • This is another one
  • Finally a third in the series

Below is some sample C++ code for demonstrating syntax highlighting and preformatted text:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#include <iostream>
#include <vector>
#include <type_traits>

class test final {
public:
  using item_value_type = int;
  using item_container_type = std::vector<int>;

  test() = delete;
  test(test const &) = default;
  test(test &&) noexcept = default;

  template<typename TItemContainer>
  explicit test(
    TItemContainer && items, std::enable_if_t<std::is_same_v<TItemContainer, item_container_type>> * = nullptr
  ) : items_{ std::forward<TItemContainer>(items) } {}

  ~test() noexcept = default;

  void display() const {
    for (auto && item : items_) {
      std::cout << item << std::endl;
    }
  }

  test & operator=(test const &) = default;
  test & operator=(test &&) noexcept = default;
private:
  item_container_type items_;
};

template<typename ... TArgs>
void foo(TArgs &&... args) {
  test new_test{ std::forward<TArgs>(args)... };

  new_test.display();
}

int main() {
  // Print out a friendly statement

  std::cout << "Hello World!" << std::endl;

  /*
    This is a multiline comment, and also some more test code
  */

  foo(test::item_container_type{ 1, 2, 3, 4, 5 });
}

Such code may have the following output:

Hello World!
1
2
3
4
5
Figure 1

A table listing some test data is shown below:

A Sample Table
Data 1 Data 2 Data 3
Test 1 1.0 583404992 Apple
Test 2 13.5 39 Orange
Test 3 4983.392 3 Lemon
Sum 4997.892 583405034 N/A
Figure 2

Images can also be displayed, with various captions just as with other figures:

Test image
Figure 3

Here's some content before a flex box to ensure that margins work correctly.

Flex Test 1: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Flex Test 2: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Flex Test 3: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Test image
Figure 4
Test image
Figure 5