TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
Loading...
Searching...
No Matches
TestCase Struct Reference

represents single example inputs and expected output of the function longest_common_string_length More...

Collaboration diagram for TestCase:
[legend]

Public Member Functions

 TestCase (std::string string_a, std::string string_b, const std::size_t in_common_string_len)
 

Public Attributes

const std::string string_a
 
const std::string string_b
 
const std::size_t common_string_len
 

Detailed Description

represents single example inputs and expected output of the function longest_common_string_length

Definition at line 54 of file longest_common_string.cpp.

Constructor & Destructor Documentation

◆ TestCase()

TestCase::TestCase ( std::string string_a,
std::string string_b,
const std::size_t in_common_string_len )
inline

Definition at line 59 of file longest_common_string.cpp.

61 : string_a(std::move(string_a)),
62 string_b(std::move(string_b)),
63 common_string_len(in_common_string_len) {}

Member Data Documentation

◆ common_string_len

const std::size_t TestCase::common_string_len

Definition at line 57 of file longest_common_string.cpp.

◆ string_a

const std::string TestCase::string_a

Definition at line 55 of file longest_common_string.cpp.

◆ string_b

const std::string TestCase::string_b

Definition at line 56 of file longest_common_string.cpp.


The documentation for this struct was generated from the following file: