forked from aniani/vim
Problem: no tests for :Tohtml Solution: Add two basic tests (Yinzuo Jiang) closes: #15240 Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
41 lines
1.2 KiB
HTML
41 lines
1.2 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<title>/home/jiangyinzuo/vim/src/testdir/Test_tohtml_basic_no_css.c.html</title>
|
|
<meta name="Generator" content="Vim/9.1">
|
|
<meta name="plugin-version" content="vim9.0_v2">
|
|
<meta name="syntax" content="none">
|
|
<meta name="settings" content="no_pre,no_foldcolumn,expand_tabs,prevent_copy=,use_input_for_pc=none">
|
|
<meta name="colorscheme" content="none">
|
|
</head>
|
|
<body bgcolor="#ffffff" text="#000000">
|
|
<font face="monospace">
|
|
#include <stdio.h><br>
|
|
#include <stdlib.h><br>
|
|
<br>
|
|
int isprime(int n)<br>
|
|
{<br>
|
|
if (n <= 1)<br>
|
|
return 0;<br>
|
|
<br>
|
|
for (int i = 2; i <= n / 2; i++)<br>
|
|
if (n % i == 0)<br>
|
|
return 0;<br>
|
|
<br>
|
|
return 1;<br>
|
|
}<br>
|
|
<br>
|
|
int main(int argc, char *argv[])<br>
|
|
{<br>
|
|
int n = 7;<br>
|
|
<br>
|
|
printf("%d is %s prime\n", n, isprime(n) ? "a" : "not a");<br>
|
|
<br>
|
|
return 0;<br>
|
|
}<br>
|
|
</font>
|
|
</body>
|
|
</html>
|
|
<!-- vim: set foldmethod=manual : -->
|