()
| 1735 | |
| 1736 | #[test] |
| 1737 | fn start_year_format() { |
| 1738 | let topic1 = topic("Climate change"); |
| 1739 | let change = change(&topic1, TimerangePrefixFormat::StartYear); |
| 1740 | |
| 1741 | assert_eq!( |
| 1742 | change.markdown(Locale::EN, "Gnusto", None), |
| 1743 | format!( |
| 1744 | r#"Gnusto updated the time prefix for [Climate change]({}) to be "1970""#, |
| 1745 | topic1.relative_url() |
| 1746 | ) |
| 1747 | ); |
| 1748 | } |
| 1749 | |
| 1750 | #[test] |
| 1751 | fn start_year_month_format() { |